Folder layout
- The text folder must be named
textsand 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 (
.txtby default).
Labels CSV
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 spanningPER, ORG, LOC and MISC. The ingest.yaml above ingests it with no overrides.
Next steps
- Stage the data and run the ingest: Prepare Data
- Shared rules for every template: Dataset templates