.txt file holding two sentences separated by a single tab, plus one CSV row with the class label.
Folder layout
text_a<TAB>text_b, for example:
- The folder must be named
textsand sit next to the labels CSV. - Exactly two non-empty fields separated by one tab, on one line. Plain prose without a tab, an empty side, or several pairs in one file are rejected. The CLI checks this before it ingests anything, and the ingestor checks it again.
- UTF-8 encoded. Every file must end in
.txt. The ingestor also accepts.text, but training opens only<filename>.txt, so a.textdataset ingests and then fails to train.
Labels CSV
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.
Sample dataset
The template ships five sentence pairs labelledentailment, contradiction and neutral. 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.Next steps
- Ingest the data: Prepare Data
- Shared rules for every template: Dataset templates