Update README.md
Browse files
README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
---
|
2 |
configs:
|
3 |
- config_name: default
|
4 |
-
data_files: "
|
5 |
names: ["kind", "sound"]
|
6 |
size_categories:
|
7 |
- n<1K
|
@@ -9,4 +9,28 @@ size_categories:
|
|
9 |
|
10 |
# [doc] format - tsv - 3
|
11 |
|
12 |
-
This dataset contains one tsv file at the root
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
configs:
|
3 |
- config_name: default
|
4 |
+
data_files: "data.tsv"
|
5 |
names: ["kind", "sound"]
|
6 |
size_categories:
|
7 |
- n<1K
|
|
|
9 |
|
10 |
# [doc] format - tsv - 3
|
11 |
|
12 |
+
This dataset contains one tsv file at the root:
|
13 |
+
|
14 |
+
- [data.tsv](./data.tsv)
|
15 |
+
|
16 |
+
```tsv
|
17 |
+
dog woof
|
18 |
+
cat meow
|
19 |
+
pokemon pika
|
20 |
+
human hello
|
21 |
+
```
|
22 |
+
|
23 |
+
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).
|
24 |
+
|
25 |
+
```yaml
|
26 |
+
---
|
27 |
+
configs:
|
28 |
+
- config_name: default
|
29 |
+
data_files: "data.tsv"
|
30 |
+
names: ["kind", "sound"]
|
31 |
+
size_categories:
|
32 |
+
- n<1K
|
33 |
+
---
|
34 |
+
```
|
35 |
+
|
36 |
+
|