piflow_word_to_vec
PiFlow · Machine learningTrain Spark Word2Vec on the input corpus and append the mean token embedding for each document.
Use this operator
operator: piflow_word_to_vec@1.0Configure remote_operator_library_urls with this repository’s origin. XStream verifies and caches artifacts by digest, sharing them across operators.
Named ports
- sourceInputrecords
Arrow records with a string text column.
Formats: Any compatible format - resultOutputrecords
Input records and an embedding array for each document.
Output structure and samples are provided by operator inference.
Parameters
- columnstringRequired
Name of the whitespace-tokenized text column.
- How to fill
- Name of the whitespace-tokenized text column. · Minimum length: 1
- Example value
- text
- vectorSizeintegerRequired
Number of embedding coordinates from 1 to 256.
- How to fill
- Number of embedding coordinates from 1 to 256. · Minimum: 1 · Maximum: 256
- Example value
- 4
Operator usage example
Connect the input ports to upstream steps and adjust the parameters for your data.
id: process
operator: piflow_word_to_vec@1.0
inputs:
source: read
params:
column: text
vectorSize: 4
Manual download
curl -fLo 'operator.jar' 'https://repo.conox.cn/v1/blobs/sha256/1857e86f1eaa6abe3cab37238276ad72d6856dd93d92b6948865de94791ac059/operator.jar'
sha256sum -- 'operator.jar'
curl -fLo 'LICENSE.txt' 'https://repo.conox.cn/v1/blobs/sha256/c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4/LICENSE.txt'
sha256sum -- 'LICENSE.txt'Compare checksums with the manifest. Download execution and build environments from the runtime catalog ↗.
Source and licensing
See Source archive under Artifact details
- Source repository
- https://github.com/cas-bigdatalab/piflow
- Source revision
- 777361c4e72b2c5457479683916b7c8e635289ff
- License (publisher declared)
- Apache-2.0
- License text
- Available below
- Dependency SBOM
- Dependency SBOM not provided
Build instructions
Compile src/ using piflow-ecoflow-spark@1.0. See job.yaml for a workflow and fixtures/example.jsonl for example records.
Publisher-provided source, licenses and dependency information support your review. Availability and checksums do not certify safety, legal clearance, or that the executable matches the source.