laurievb commited on
Commit
2076a7d
1 Parent(s): 54e0cf4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +62 -12
README.md CHANGED
@@ -1,21 +1,26 @@
1
  ---
2
  library_name: fasttext
3
  tags:
4
- - text-classification
5
- - language-identification
 
 
6
  ---
7
 
8
  # OpenLID
9
 
 
 
 
 
 
10
 
11
  ## Model description
12
 
13
- fastText is a library for efficient learning of word representations and sentence classification. fastText is designed to be simple to use for developers, domain experts, and students. It's dedicated to text classification and learning word representations, and was designed to allow for quick model iteration and refinement without specialized hardware. fastText models can be trained on more than a billion words on any multicore CPU in less than a few minutes.
14
 
 
15
 
16
- ## Intended uses & limitations
17
-
18
- You can use pre-trained word vectors for text classification or language identification. See the [tutorials](https://fasttext.cc/docs/en/supervised-tutorial.html) and [resources](https://fasttext.cc/docs/en/english-vectors.html) on its official website to look for tasks that interest you.
19
 
20
  ### How to use
21
 
@@ -39,22 +44,67 @@ Here is how to use this model to detect the language of a given text:
39
 
40
  ### Limitations and bias
41
 
42
- [More Information needed]
 
 
 
43
  ## Training data
44
 
 
 
 
45
 
46
- [More Information needed]
47
  ## Training procedure
48
 
 
49
 
50
- ### License
 
 
 
 
 
 
 
 
51
 
52
- [More Information needed]
53
 
54
  ### Evaluation datasets
55
 
56
- [More Information needed]
57
 
58
  ### BibTeX entry and citation info
59
 
60
- [More Information needed]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  library_name: fasttext
3
  tags:
4
+ - text-classification
5
+ - language-identification
6
+ metrics:
7
+ - f1
8
  ---
9
 
10
  # OpenLID
11
 
12
+ - **Developed by:** Laurie Burchell, Alexandra Birch, Nikolay Bogoychev, Kenneth Heafield
13
+ - **Model type:** Text classification (language identification)
14
+ - **Language(s) (NLP):** en
15
+ - **License:** gpl-3.0
16
+ - **Resources for more information:** [OpenLID github repo](https://github.com/laurieburchell/open-lid-dataset)
17
 
18
  ## Model description
19
 
20
+ OpenLID is a high-coverage, high-performance language identification model. It is a fastText model which covers 201 languages. The training data and per-language performance are openly available to encourage further research.
21
 
22
+ The model and training data are described in [Burchell et al. (2023)](https://aclanthology.org/2023.acl-short.75/) and the original fastText implementation is available through [github](https://github.com/laurieburchell/open-lid-dataset).
23
 
 
 
 
24
 
25
  ### How to use
26
 
 
44
 
45
  ### Limitations and bias
46
 
47
+ The dataset and model only covers 201 languages: the ones we were able to test with the FLORES-200 Evaluation Benchmark. In addition, because our test set consists of sentences from a single domain (wiki articles), performance on this test set may not reflect how well our classifier works in other domains. Future work could create a LID test set representative of web data where these classifiers are often applied. Finally, most of the data was not audited by native speakers as would be ideal. Future versions of this dataset should have more languages verified by native speakers, with a focus on the least resourced languages.
48
+
49
+ Our work aims to broaden NLP coverage by allowing practitioners to identify relevant data in more languages. However, we note that LID is inherently a normative activity that risks excluding minority dialects, scripts, or entire microlanguages from a macrolanguage. Choosing which languages to cover may reinforce power imbalances, as only some groups gain access to NLP technologies. In addition, errors in LID can have a significant impact on downstream performance, particularly (as is often the case) when a system is used as a ‘black box’. The performance of our classifier is not equal across languages which could lead to worse downstream performance for particular groups. We mitigate this by providing metrics by class.
50
+
51
  ## Training data
52
 
53
+ The model was trained on the OpenLID dataset which is available [through the github repo](https://github.com/laurieburchell/open-lid-dataset) or on HuggingFace.
54
+
55
+ The final dataset contains 121 million lines of data in 201 language classes. Before sampling, the mean number of lines per language is 602,812. The smallest class contains 532 lines of data (South Azerbaijani) and the largest contains 7.5 million lines of data (English). More details at paper
56
 
 
57
  ## Training procedure
58
 
59
+ The model was trained using fastText with the following hyperparameters set. All other hyperparameters were set to their default values.
60
 
61
+ * loss: softmax
62
+ * epochs: 2
63
+ * learning rate: 0.8
64
+ * minimum number of word occurances: 1000
65
+ * embedding dimension: 256
66
+ * character n-grams: 2-5
67
+ * word n-grams: 1
68
+ * bucket size: 1,000,000
69
+ * threads: 68
70
 
 
71
 
72
  ### Evaluation datasets
73
 
74
+ The model was evaluated using the FLORES-200 benchmark provided by Costa-jussà et al. (2022). Further information is available in the paper.
75
 
76
  ### BibTeX entry and citation info
77
 
78
+ #### ACL citation (preferred)
79
+
80
+ ```
81
+ @inproceedings{burchell-etal-2023-open,
82
+ title = "An Open Dataset and Model for Language Identification",
83
+ author = "Burchell, Laurie and
84
+ Birch, Alexandra and
85
+ Bogoychev, Nikolay and
86
+ Heafield, Kenneth",
87
+ editor = "Rogers, Anna and
88
+ Boyd-Graber, Jordan and
89
+ Okazaki, Naoaki",
90
+ booktitle = "Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)",
91
+ month = jul,
92
+ year = "2023",
93
+ address = "Toronto, Canada",
94
+ publisher = "Association for Computational Linguistics",
95
+ url = "https://aclanthology.org/2023.acl-short.75",
96
+ doi = "10.18653/v1/2023.acl-short.75",
97
+ pages = "865--879",
98
+ abstract = "Language identification (LID) is a fundamental step in many natural language processing pipelines. However, current LID systems are far from perfect, particularly on lower-resource languages. We present a LID model which achieves a macro-average F1 score of 0.93 and a false positive rate of 0.033{\%} across 201 languages, outperforming previous work. We achieve this by training on a curated dataset of monolingual data, which we audit manually to ensure reliability. We make both the model and the dataset available to the research community. Finally, we carry out detailed analysis into our model{'}s performance, both in comparison to existing open models and by language class.",
99
+ }
100
+ ```
101
+
102
+ #### ArXiv citation
103
+ ```
104
+ @article{burchell2023open,
105
+ title={An Open Dataset and Model for Language Identification},
106
+ author={Burchell, Laurie and Birch, Alexandra and Bogoychev, Nikolay and Heafield, Kenneth},
107
+ journal={arXiv preprint arXiv:2305.13820},
108
+ year={2023}
109
+ }
110
+ ```