bourdoiscatie's picture
Update README.md
62dd59d
|
raw
history blame
2.12 kB
metadata
language: multilingual, en, fr, es, de, zh, ar, ru, pt, it, ur
datasets: wikipedia
license: apache-2.0
widget:
  - text: Google generated 46 billion [MASK] in revenue.
  - text: Paris is the capital of [MASK].
  - text: Algiers is the largest city in [MASK].
  - text: Paris est la [MASK] de la France.
  - text: Paris est la capitale de la [MASK].
  - text: L'élection américaine a eu [MASK] en novembre 2020.
  - text: تقع سويسرا في [MASK] أوروبا
  - text: إسمي محمد وأسكن في [MASK].

bert-base-10lang-cased

We are sharing smaller versions of bert-base-multilingual-cased that handle a custom number of languages.

Unlike distilbert-base-multilingual-cased, our versions give exactly the same representations produced by the original model which preserves the original accuracy.

This model handles the following languages: english, french, spanish, german, chinese, arabic, russian, portuguese, italian, and urdu. It produces the same representations as bert-base-multilingual-cased while being 22.5% smaller in size.

For more information please visit our paper: Load What You Need: Smaller Versions of Multilingual BERT.

How to use

from transformers import AutoTokenizer, AutoModel

tokenizer = AutoTokenizer.from_pretrained("Geotrend/bert-base-10lang-cased")
model = AutoModel.from_pretrained("Geotrend/bert-base-10lang-cased")

To generate other smaller versions of multilingual transformers please visit our Github repo.

How to cite

@inproceedings{smallermbert,
  title={Load What You Need: Smaller Versions of Multilingual BERT},
  author={Abdaoui, Amine and Pradel, Camille and Sigel, Grégoire},
  booktitle={SustaiNLP / EMNLP},
  year={2020}
}

Contact

Please contact [email protected] for any question, feedback or request.