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; one extension across the dataset (.txt by default).

Labels CSV

With sample1.txt containing John Smith works at Google. Do not declare filename or label in schema.

ingest.yaml

What the ingestor checks

Plus the checks every ingest runs. The dataset’s classes are the distinct tags, not the distinct tag strings, so a single-class check does not apply here.

Sample dataset

The template ships three pre-tokenized sentences with tags spanning PER, ORG, LOC and MISC. The ingest.yaml above ingests it with no overrides.

Next steps