Migrate model card from transformers-repo
Browse filesRead announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755
Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/Geotrend/bert-base-en-zh-cased/README.md
README.md
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language: multilingual
|
3 |
+
|
4 |
+
datasets: wikipedia
|
5 |
+
|
6 |
+
license: apache-2.0
|
7 |
+
|
8 |
+
widget:
|
9 |
+
- text: "Google generated 46 billion [MASK] in revenue."
|
10 |
+
- text: "Paris is the capital of [MASK]."
|
11 |
+
- text: "Algiers is the largest city in [MASK]."
|
12 |
+
---
|
13 |
+
|
14 |
+
# bert-base-en-zh-cased
|
15 |
+
|
16 |
+
We are sharing smaller versions of [bert-base-multilingual-cased](https://huggingface.co/bert-base-multilingual-cased) that handle a custom number of languages.
|
17 |
+
|
18 |
+
Unlike [distilbert-base-multilingual-cased](https://huggingface.co/distilbert-base-multilingual-cased), our versions give exactly the same representations produced by the original model which preserves the original accuracy.
|
19 |
+
|
20 |
+
For more information please visit our paper: [Load What You Need: Smaller Versions of Multilingual BERT](https://www.aclweb.org/anthology/2020.sustainlp-1.16.pdf).
|
21 |
+
|
22 |
+
## How to use
|
23 |
+
|
24 |
+
```python
|
25 |
+
from transformers import AutoTokenizer, AutoModel
|
26 |
+
|
27 |
+
tokenizer = AutoTokenizer.from_pretrained("Geotrend/bert-base-en-zh-cased")
|
28 |
+
model = AutoModel.from_pretrained("Geotrend/bert-base-en-zh-cased")
|
29 |
+
|
30 |
+
```
|
31 |
+
|
32 |
+
To generate other smaller versions of multilingual transformers please visit [our Github repo](https://github.com/Geotrend-research/smaller-transformers).
|
33 |
+
|
34 |
+
### How to cite
|
35 |
+
|
36 |
+
```bibtex
|
37 |
+
@inproceedings{smallermbert,
|
38 |
+
title={Load What You Need: Smaller Versions of Mutlilingual BERT},
|
39 |
+
author={Abdaoui, Amine and Pradel, Camille and Sigel, Grégoire},
|
40 |
+
booktitle={SustaiNLP / EMNLP},
|
41 |
+
year={2020}
|
42 |
+
}
|
43 |
+
```
|
44 |
+
|
45 |
+
## Contact
|
46 |
+
|
47 |
+
Please contact amine@geotrend.fr for any question, feedback or request.
|