Update README.md
Browse files
README.md
CHANGED
@@ -9,4 +9,27 @@ size_categories:
|
|
9 |
|
10 |
# [doc] formats - csv - 2
|
11 |
|
12 |
-
This dataset contains one csv file at the root
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
# [doc] formats - csv - 2
|
11 |
|
12 |
+
This dataset contains one csv file at the root:
|
13 |
+
|
14 |
+
- [data.csv](./data.csv)
|
15 |
+
|
16 |
+
```csv
|
17 |
+
kind,sound
|
18 |
+
dog,woof
|
19 |
+
cat,meow
|
20 |
+
pokemon,pika
|
21 |
+
human,hello
|
22 |
+
```
|
23 |
+
|
24 |
+
We define the separator as `","` in the YAML config, as well as the config name and the location of the file, with a glob expression:
|
25 |
+
|
26 |
+
```yaml
|
27 |
+
---
|
28 |
+
configs:
|
29 |
+
- config_name: default
|
30 |
+
data_files: "*.csv"
|
31 |
+
sep: ","
|
32 |
+
size_categories:
|
33 |
+
- n<1K
|
34 |
+
---
|
35 |
+
```
|