Train a spaCy pipeline
train · Built-in action recipeTrain a spaCy pipeline on your annotations: named entities, spans, text classification, tagging, parsing, sentence segmentation or coreference.
If you've connected Ellf to your coding assistant, it can set up the action for you: it knows the recipe's settings, can create the datasets and assets it needs and will ask you about anything it can't work out itself.
✳︎Claude Code: Setting up an action
› Set up an Ellf action using the Train a spaCy pipeline recipe (train) and help me choose the right settings for my data.- In the app, go to ActionsNew action.
- Select the Train a spaCy pipeline recipe under Training.
- Fill in the form – you'll need to provide Components to train and Output settings. Everything else has sensible defaults.
- Create the action. It starts on your cluster straight away.
Create the action with ellf actions create and the recipe name. All settings from the form are available as arguments. To view all recipe arguments, run ellf actions create train --help.
| Argument | Type | Description | Default |
|---|---|---|---|
--name | str | Name of the action | None |
--data.ner | bool | Named Entity Recognition datasets: Annotated data for the different components to train. | None |
--ner.train | List[str] | Training datasets (Datasets) | None |
--ner.train-asset | List[str] | Training datasets (Assets) | None |
--ner.eval | List[str] | Evaluation datasets (Datasets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--ner.eval-asset | List[str] | Evaluation datasets (Assets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--data.spancat | bool | Span Categorizer datasets: Annotated data for the different components to train. | None |
--spancat.train | List[str] | Training datasets (Datasets) | None |
--spancat.train-asset | List[str] | Training datasets (Assets) | None |
--spancat.eval | List[str] | Evaluation datasets (Datasets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--spancat.eval-asset | List[str] | Evaluation datasets (Assets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--data.textcat | bool | Text Classifier (exclusive categories) datasets: Annotated data for the different components to train. | None |
--textcat.train | List[str] | Training datasets (Datasets) | None |
--textcat.train-asset | List[str] | Training datasets (Assets) | None |
--textcat.eval | List[str] | Evaluation datasets (Datasets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--textcat.eval-asset | List[str] | Evaluation datasets (Assets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--data.textcat-multilabel | bool | Text Classifier (non-exclusive categories) datasets: Annotated data for the different components to train. | None |
--textcat-multilabel.train | List[str] | Training datasets (Datasets) | None |
--textcat-multilabel.train-asset | List[str] | Training datasets (Assets) | None |
--textcat-multilabel.eval | List[str] | Evaluation datasets (Datasets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--textcat-multilabel.eval-asset | List[str] | Evaluation datasets (Assets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--data.tagger | bool | Part-of-Speech Tagger datasets: Annotated data for the different components to train. | None |
--tagger.train | List[str] | Training datasets (Datasets) | None |
--tagger.train-asset | List[str] | Training datasets (Assets) | None |
--tagger.eval | List[str] | Evaluation datasets (Datasets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--tagger.eval-asset | List[str] | Evaluation datasets (Assets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--data.parser | bool | Dependency Parser datasets: Annotated data for the different components to train. | None |
--parser.train | List[str] | Training datasets (Datasets) | None |
--parser.train-asset | List[str] | Training datasets (Assets) | None |
--parser.eval | List[str] | Evaluation datasets (Datasets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--parser.eval-asset | List[str] | Evaluation datasets (Assets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--data.senter | bool | Sentence Segmenter datasets: Annotated data for the different components to train. | None |
--senter.train | List[str] | Training datasets (Datasets) | None |
--senter.train-asset | List[str] | Training datasets (Assets) | None |
--senter.eval | List[str] | Evaluation datasets (Datasets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--senter.eval-asset | List[str] | Evaluation datasets (Assets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--data.coref | bool | Coreference Resolution datasets: Annotated data for the different components to train. | None |
--coref.train | List[str] | Training datasets (Datasets) | None |
--coref.train-asset | List[str] | Training datasets (Assets) | None |
--coref.eval | List[str] | Evaluation datasets (Datasets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--coref.eval-asset | List[str] | Evaluation datasets (Assets): If no datasets are provided, a portion of the training data (set by the Evaluation split) is held back for evaluation. | None |
--base-model-blank | bool | Blank spaCy model: Train from scratch, starting from an empty pipeline. | None |
--lang | str | Language: Base language to use for tokenization.Available: af, am, ar, az, bg, bn, bo, ca, cs, da, de, dsb, el, en, es, et, eu, fa, fi, fo, fr, ga, gd, grc, gu, he, hi, hr, hsb, ht, hu, hy, id, is, it, ja, kmr, kn, ko, ky, la, lb, lg, lij, lt, lv, mk, ml, mr, ms, nb, ne, nl, nn, pl, pt, ro, ru, sa, si, sk, sl, sq, sr, sv, ta, te, th, ti, tl, tn, tr, tt, uk, ur, vi, xx, yo, zh | "en" |
--base-model | str | Trained spaCy model: If you have custom pipelines, you can add them to your cluster. | None |
--output.skip | bool | Skip saving outputs: If checked, no Model or Results asset will be registered. Use only for diagnostic runs you don't need to keep. | False |
--output.name | str | Output model name: Asset name registered in Ellf for the model. The Results asset is registered under <name>.results. | "" |
--output.path | str | Model path: Where to upload the model. Leave empty to use {__nfs__}/models/<name>/<version>. Use a path alias like {__nfs__}/models/<name> or an absolute path, not a relative one. | "" |
--output.version | str | Version: Semantic version applied to both the Model and Results assets. | "0.1.0" |
--eval-split | float | Evaluation split: Portion of examples to hold back for evaluation if no dedicated evaluation datasets are provided for a component. | 0.2 |
--label-stats | bool | Show per-label scores: Will output an additional table for each component with scores for the individual labels. | False |
--verbose | bool | Enable verbose logging | False |
--train-curve | bool | Train curve: Train with different portions of the data to simulate how the model improves with more data. | None |
--train-curve.n-samples | int | Number of samples to take: For example, 4 samples train with 25%, 50%, 75% and 100% of the data. | 1 |
--train-curve.show-plot | bool | Show a visual plot of the curve in the logs | False |
--config-overrides | List[str] | Config overrides: Override config values for training. | None |
--project-id | str | Project ID to add action to. Defaults to your saved project. | None |
--worker-class | str | Worker class to launch the action on, as configured on your cluster | None |