Text Classification
textcat · Built-in task recipeAssign categories to whole texts or sentences, e.g. topic, sentiment or intent. Single- or multi-label, optionally with suggestions from a spaCy model.
If you've connected Ellf to your coding assistant, it can set up the task 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 a task
› Set up an Ellf task using the Text Classification recipe (textcat) and help me choose the right settings for my data.- In the app, go to TasksNew task.
- Select the Text Classification recipe under Text.
- Fill in the form – you'll need to provide Dataset, Input data asset and Labels. Everything else has sensible defaults.
- Create the task. It starts on your cluster straight away.
Create the task with ellf tasks create and the recipe name. All settings from the form are available as arguments. To view all recipe arguments, run ellf tasks create textcat --help.
| Argument | Type | Description | Default |
|---|---|---|---|
--name | str | Name of the task | None |
--dataset | str | Dataset: Select an existing dataset or create a new one. | |
--input | str | Input data asset: Upload data to your cluster and it will be available here. | |
--label | List[str] | List: Type the labels, or pick a Labels asset with optional definitions.One option for Labels | None |
--label-scheme | str | Asset: A label scheme as a JSON file, with optional definitions for each label.One option for Labels | None |
--model | bool | Model: Include suggestions from the model's predictions. | None |
--model.name | str | Trained spaCy model: If you have custom pipelines, you can add them to your cluster. | None |
--model.update | bool | Update the model in the loop: Update the model in the loop with the received annotations. | False |
--model.threshold | float | Threshold: Score threshold to pre-select label, e.g. 0.75 to select all labels with a score of 0.75 and above. | 0.5 |
--labels-exclusive | bool | Mutually exclusive labels: Every example has exactly one correct label. A model's own setting takes precedence. | False |
--settings.instructions | str | Instructions: Markdown document with annotation guidelines, shown to annotators and agents. | None |
--settings.goal | str | Data collection goalAvailable: nooverlap, overlap | "nooverlap" |
--settings.config | str | Prodigy config: JSON object of Prodigy config to override, e.g. the theme, keyboard shortcuts or interface style. | "" |
--settings.exclude | List[str] | Exclude datasets: Datasets containing annotations to exclude. | None |
--project-id | str | Project ID to add task to. Defaults to your saved project. | None |
--worker-class | str | Worker class to launch the task on, as configured on your cluster | None |