sgugger Marissa commited on
Commit
737aa82
1 Parent(s): 8563ed7

Add model card (#1)

Browse files

- Add model card (aa5c4aee14fc49349adf1a1e5f671c040d90e63b)
- Update README.md (68a4c3b011d3a2352ec2a166b8d2db783a36ab8e)
- Update README.md (0da3acb6ed95bb00c0521ff7936403e3ce96620a)


Co-authored-by: Marissa Gerchick <[email protected]>

Files changed (1) hide show
  1. README.md +232 -2
README.md CHANGED
@@ -1,5 +1,235 @@
1
  ---
2
- language: de
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
4
 
5
- ## xlm-roberta-large-finetuned-conll03-german
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - multilingual
4
+ - af
5
+ - am
6
+ - ar
7
+ - as
8
+ - az
9
+ - be
10
+ - bg
11
+ - bn
12
+ - br
13
+ - bs
14
+ - ca
15
+ - cs
16
+ - cy
17
+ - da
18
+ - de
19
+ - el
20
+ - en
21
+ - eo
22
+ - es
23
+ - et
24
+ - eu
25
+ - fa
26
+ - fi
27
+ - fr
28
+ - fy
29
+ - ga
30
+ - gd
31
+ - gl
32
+ - gu
33
+ - ha
34
+ - he
35
+ - hi
36
+ - hr
37
+ - hu
38
+ - hy
39
+ - id
40
+ - is
41
+ - it
42
+ - ja
43
+ - jv
44
+ - ka
45
+ - kk
46
+ - km
47
+ - kn
48
+ - ko
49
+ - ku
50
+ - ky
51
+ - la
52
+ - lo
53
+ - lt
54
+ - lv
55
+ - mg
56
+ - mk
57
+ - ml
58
+ - mn
59
+ - mr
60
+ - ms
61
+ - my
62
+ - ne
63
+ - nl
64
+ - no
65
+ - om
66
+ - or
67
+ - pa
68
+ - pl
69
+ - ps
70
+ - pt
71
+ - ro
72
+ - ru
73
+ - sa
74
+ - sd
75
+ - si
76
+ - sk
77
+ - sl
78
+ - so
79
+ - sq
80
+ - sr
81
+ - su
82
+ - sv
83
+ - sw
84
+ - ta
85
+ - te
86
+ - th
87
+ - tl
88
+ - tr
89
+ - ug
90
+ - uk
91
+ - ur
92
+ - uz
93
+ - vi
94
+ - xh
95
+ - yi
96
+ - zh
97
  ---
98
 
99
+ # xlm-roberta-large-finetuned-conll03-german
100
+
101
+ # Table of Contents
102
+
103
+ 1. [Model Details](#model-details)
104
+ 2. [Uses](#uses)
105
+ 3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
106
+ 4. [Training](#training)
107
+ 5. [Evaluation](#evaluation)
108
+ 6. [Environmental Impact](#environmental-impact)
109
+ 7. [Technical Specifications](#technical-specifications)
110
+ 8. [Citation](#citation)
111
+ 9. [Model Card Authors](#model-card-authors)
112
+ 10. [How To Get Started With the Model](#how-to-get-started-with-the-model)
113
+
114
+
115
+ # Model Details
116
+
117
+ ## Model Description
118
+
119
+ The XLM-RoBERTa model was proposed in [Unsupervised Cross-lingual Representation Learning at Scale](https://arxiv.org/abs/1911.02116) by Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. It is based on Facebook's RoBERTa model released in 2019. It is a large multi-lingual language model, trained on 2.5TB of filtered CommonCrawl data. This model is [XLM-RoBERTa-large](https://huggingface.co/xlm-roberta-large) fine-tuned with the [conll2003](https://huggingface.co/datasets/conll2003) dataset in German.
120
+
121
+ - **Developed by:** See [associated paper](https://arxiv.org/abs/1911.02116)
122
+ - **Model type:** Multi-lingual language model
123
+ - **Language(s) (NLP):** XLM-RoBERTa is a multilingual model trained on 100 different languages; see [GitHub Repo](https://github.com/facebookresearch/fairseq/tree/main/examples/xlmr) for full list; model is fine-tuned on a dataset in German
124
+ - **License:** More information needed
125
+ - **Related Models:** [RoBERTa](https://huggingface.co/roberta-base), [XLM](https://huggingface.co/docs/transformers/model_doc/xlm)
126
+ - **Parent Model:** [XLM-RoBERTa-large](https://huggingface.co/xlm-roberta-large)
127
+ - **Resources for more information:**
128
+ -[GitHub Repo](https://github.com/facebookresearch/fairseq/tree/main/examples/xlmr)
129
+ -[Associated Paper](https://arxiv.org/abs/1911.02116)
130
+
131
+ # Uses
132
+
133
+ ## Direct Use
134
+
135
+ The model is a language model. The model can be used for token classification, a natural language understanding task in which a label is assigned to some tokens in a text.
136
+
137
+ ## Downstream Use
138
+
139
+ Potential downstream use cases include Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. To learn more about token classification and other potential downstream use cases, see the Hugging Face [token classification docs](https://huggingface.co/tasks/token-classification).
140
+
141
+ ## Out-of-Scope Use
142
+
143
+ The model should not be used to intentionally create hostile or alienating environments for people.
144
+
145
+ # Bias, Risks, and Limitations
146
+
147
+ **CONTENT WARNING: Readers should be made aware that language generated by this model may be disturbing or offensive to some and may propagate historical and current stereotypes.**
148
+
149
+ Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
150
+
151
+ ## Recommendations
152
+
153
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
154
+
155
+ # Training
156
+
157
+ See the following resources for training data and training procedure details:
158
+ - [XLM-RoBERTa-large model card](https://huggingface.co/xlm-roberta-large)
159
+ - [CoNLL-2003 data card](https://huggingface.co/datasets/conll2003)
160
+ - [Associated paper](https://arxiv.org/pdf/1911.02116.pdf)
161
+
162
+ # Evaluation
163
+
164
+ See the [associated paper](https://arxiv.org/pdf/1911.02116.pdf) for evaluation details.
165
+
166
+ # Environmental Impact
167
+
168
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
169
+
170
+ - **Hardware Type:** 500 32GB Nvidia V100 GPUs (from the [associated paper](https://arxiv.org/pdf/1911.02116.pdf))
171
+ - **Hours used:** More information needed
172
+ - **Cloud Provider:** More information needed
173
+ - **Compute Region:** More information needed
174
+ - **Carbon Emitted:** More information needed
175
+
176
+ # Technical Specifications
177
+
178
+ See the [associated paper](https://arxiv.org/pdf/1911.02116.pdf) for further details.
179
+
180
+ # Citation
181
+
182
+ **BibTeX:**
183
+
184
+ ```bibtex
185
+ @article{conneau2019unsupervised,
186
+ title={Unsupervised Cross-lingual Representation Learning at Scale},
187
+ author={Conneau, Alexis and Khandelwal, Kartikay and Goyal, Naman and Chaudhary, Vishrav and Wenzek, Guillaume and Guzm{\'a}n, Francisco and Grave, Edouard and Ott, Myle and Zettlemoyer, Luke and Stoyanov, Veselin},
188
+ journal={arXiv preprint arXiv:1911.02116},
189
+ year={2019}
190
+ }
191
+ ```
192
+
193
+ **APA:**
194
+ - Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., ... & Stoyanov, V. (2019). Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116.
195
+
196
+ # Model Card Authors
197
+
198
+ This model card was written by the team at Hugging Face.
199
+
200
+ # How to Get Started with the Model
201
+
202
+ Use the code below to get started with the model. You can use this model directly within a pipeline for NER.
203
+
204
+ <details>
205
+ <summary> Click to expand </summary>
206
+
207
+ ```python
208
+ >>> from transformers import AutoTokenizer, AutoModelForTokenClassification
209
+ >>> from transformers import pipeline
210
+ >>> tokenizer = AutoTokenizer.from_pretrained("xlm-roberta-large-finetuned-conll03-german")
211
+ >>> model = AutoModelForTokenClassification.from_pretrained("xlm-roberta-large-finetuned-conll03-german")
212
+ >>> classifier = pipeline("ner", model=model, tokenizer=tokenizer)
213
+ >>> classifier("Bayern München ist wieder alleiniger Top-Favorit auf den Gewinn der deutschen Fußball-Meisterschaft.")
214
+
215
+ [{'end': 6,
216
+ 'entity': 'I-ORG',
217
+ 'index': 1,
218
+ 'score': 0.99999166,
219
+ 'start': 0,
220
+ 'word': '▁Bayern'},
221
+ {'end': 14,
222
+ 'entity': 'I-ORG',
223
+ 'index': 2,
224
+ 'score': 0.999987,
225
+ 'start': 7,
226
+ 'word': '▁München'},
227
+ {'end': 77,
228
+ 'entity': 'I-MISC',
229
+ 'index': 16,
230
+ 'score': 0.9999728,
231
+ 'start': 68,
232
+ 'word': '▁deutschen'}]
233
+ ```
234
+
235
+ </details>