Skip to main content
Label each word in a sequence — named-entity recognition, part-of-speech tagging. The layout is the same as text classification; the difference is the label: instead of one class it holds the BIO tag sequence for the words in the file.

Folder layout

  • The text folder must be named texts and sit next to the labels CSV.
  • One pre-tokenized sentence per file: words separated by whitespace. The whitespace-separated words are the tokens that get tagged; the model’s own tokenizer handles sub-word splitting at training time.
  • UTF-8 encoded. Every file must end in .txt. The ingestor also accepts .text, but training opens only <filename>.txt, so a .text dataset ingests and then fails to train.

Labels CSV

With sample1.txt containing John Smith works at Google. Do not declare the label column or a reserved column name (such as filename or extension) in schema.

Ingest with the CLI

Each split is one folder laid out as above. Ingest the training and the test split separately:
--label-column is required for this task. Set it to the name of the label column in labels.csv. On a terminal, the CLI asks for it if you leave it out. In a script (--no-input, --output-json or no terminal), leaving it out sends an empty label, and the spec fails validation before anything is ingested.

ingest.yaml

What the ingestor checks

Plus the checks every ingest runs. No label-diversity check runs for this task: each label is a tag sequence, not a class. The dataset’s classes are the distinct tags across all rows (for example O, B-PER, I-PER).

Sample dataset

The template ships three pre-tokenized sentences with tags spanning PER, ORG, LOC and MISC. The manifest ships as labels_file_sample.csv: rename it to labels.csv before you ingest the folder, because the CLI reads only that name. For the Helm chart, stage the renamed folder so that it matches the paths in the ingest.yaml above.

Score formulas

When you define a use case on this data, the platform currently accepts Accuracy only. The engine also reports precision, recall and F1 for each run, but you cannot pick them as the score formula yet.

Next steps