librarian-bot commited on
Commit
ef09cd0
1 Parent(s): 5241aab

Librarian Bot: Add language metadata for dataset

Browse files

This pull request aims to enrich the metadata of your dataset by adding language metadata to `YAML` block of your dataset card `README.md`.

How did we find this information?

- The librarian-bot downloaded a sample of rows from your dataset using the [dataset-server](https://huggingface.co/docs/datasets-server/) library
- The librarian-bot used a language detection model to predict the likely language of your dataset. This was done on columns likely to contain text data.
- Predictions for rows are aggregated by language and a filter is applied to remove languages which are very infrequently predicted
- A confidence threshold is applied to remove languages which are not confidently predicted

The following languages were detected with the following mean probabilities:

- Spanish (es): 88.47%
- English (en): 95.23%


If this PR is merged, the language metadata will be added to your dataset card. This will allow users to filter datasets by language on the [Hub](https://huggingface.co/datasets).
If the language metadata is incorrect, please feel free to close this PR.

To merge this PR, you can use the merge button below the PR:
![Screenshot 2024-02-06 at 15.27.46.png](https://cdn-uploads.huggingface.co/production/uploads/63d3e0e8ff1384ce6c5dd17d/1PRE3CoDpg_wfThC6U1w0.png)

This PR comes courtesy of [Librarian Bot](https://huggingface.co/librarian-bots). If you have any feedback, queries, or need assistance, please don't hesitate to reach out to

@davanstrien

.

Files changed (1) hide show
  1. README.md +24 -21
README.md CHANGED
@@ -1,27 +1,30 @@
1
  ---
 
 
 
2
  configs:
3
- - config_name: default
4
- data_files:
5
- - split: train
6
- path: data/train-*
7
- - split: dev
8
- path: data/dev-*
9
  dataset_info:
10
- features:
11
- - name: tokens
12
- sequence: string
13
- - name: tags
14
- sequence:
15
- class_label:
16
- names:
17
- 0: "lang1"
18
- 1: "lang2"
19
- 2: "mixed"
20
- 3: "other"
21
- 4: "fw"
22
- 5: "ambiguous"
23
- 6: "unk"
24
- 7: "ne"
25
  splits:
26
  - name: train
27
  num_bytes: 18929435
 
1
  ---
2
+ language:
3
+ - es
4
+ - en
5
  configs:
6
+ - config_name: default
7
+ data_files:
8
+ - split: train
9
+ path: data/train-*
10
+ - split: dev
11
+ path: data/dev-*
12
  dataset_info:
13
+ features:
14
+ - name: tokens
15
+ sequence: string
16
+ - name: tags
17
+ sequence:
18
+ class_label:
19
+ names:
20
+ 0: lang1
21
+ 1: lang2
22
+ 2: mixed
23
+ 3: other
24
+ 4: fw
25
+ 5: ambiguous
26
+ 6: unk
27
+ 7: ne
28
  splits:
29
  - name: train
30
  num_bytes: 18929435