.txt file plus one row in a labels CSV that names the file and its class.
Folder layout
- The text folder must be named
textsand sit next to the labels CSV. - One document per file, UTF-8 encoded. All files share one extension:
.txt(default) or.text.
Labels CSV
Do not declare
filename in schema — it is a reserved column and a schema entry for it fails the ingest. The label column does not need to be in schema either: label: names it, and the ingestor removes it from the stored table schema if you declare it anyway. schema is only for additional typed columns you want stored alongside each sample.
ingest.yaml
What the ingestor checks
Plus the checks every ingest runs.
Sample dataset
The template ships five product-review style.txt files and a labels CSV with the classes positive, negative and neutral. 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