File size: 860 Bytes
7ada24e 95c5d29 7ada24e 05bf04d 7ada24e 95c5d29 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
---
configs:
- config_name: default
data_files: "data.tsv"
names: ["kind", "sound"]
size_categories:
- n<1K
---
# [doc] formats - tsv - 3
This dataset contains one tsv file at the root:
- [data.tsv](./data.tsv)
```tsv
dog woof
cat meow
pokemon pika
human hello
```
We define the config name in the YAML config, the file's exact location, and the columns' name. As we provide the `names` option, but not the `header` one, the first row in the file is considered a row of values, not a row of column names. The delimiter is set to `"\t"` (tabulation) due to the file's extension. The reference for the options is the [documentation of pandas.read_csv()](https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html).
```yaml
---
configs:
- config_name: default
data_files: "data.tsv"
names: ["kind", "sound"]
size_categories:
- n<1K
---
```
|