AraBERTv0.2-Twitter-base/large are two new models for Arabic dialects and tweets, trained by continuing the pre-training using the MLM task on ~60M Arabic tweets (filtered from a collection on 100M).
The two new models have had emojies added to their vocabulary in addition to common words that weren't at first present. The pre-training was done with a max sentence length of 64 only for 1 epoch.
The model is trained on a sequence length of 64, using max length beyond 64 might result in degraded performance
It is recommended to apply our preprocessing function before training/testing on any dataset.
The preprocessor will keep and space out emojis when used with a "twitter" model.
from arabert.preprocess import ArabertPreprocessor
from transformers import AutoTokenizer, AutoModelForMaskedLM
model_name="aubmindlab/bert-base-arabertv02-twitter"
arabert_prep = ArabertPreprocessor(model_name=model_name)
text = "ولن نبالغ إذا قلنا إن هاتف أو كمبيوتر المكتب في زمننا هذا ضروري"
arabert_prep.preprocess(text)
tokenizer = AutoTokenizer.from_pretrained("aubmindlab/bert-base-arabertv02-twitter")
model = AutoModelForMaskedLM.from_pretrained("aubmindlab/bert-base-arabertv02-twitter")
If you used this model please cite us as :
Google Scholar has our Bibtex wrong (missing name), use this instead
@inproceedings{antoun2020arabert,
title={AraBERT: Transformer-based Model for Arabic Language Understanding},
author={Antoun, Wissam and Baly, Fady and Hajj, Hazem},
booktitle={LREC 2020 Workshop Language Resources and Evaluation Conference 11--16 May 2020},
pages={9}
}
Acknowledgments
Thanks to TensorFlow Research Cloud (TFRC) for the free access to Cloud TPUs, couldn't have done it without this program, and to the
AUB MIND Lab
Members for the continuous support. Also thanks to
Yakshof
and Assafir for data and storage access. Another thanks for Habib Rahal (
https://www.behance.net/rahalhabib
), for putting a face to AraBERT.
Runs of aubmindlab bert-large-arabertv02-twitter on huggingface.co
396
Total runs
-8
24-hour runs
-31
3-day runs
-54
7-day runs
-302
30-day runs
More Information About bert-large-arabertv02-twitter huggingface.co Model
bert-large-arabertv02-twitter huggingface.co
bert-large-arabertv02-twitter huggingface.co is an AI model on huggingface.co that provides bert-large-arabertv02-twitter's model effect (), which can be used instantly with this aubmindlab bert-large-arabertv02-twitter model. huggingface.co supports a free trial of the bert-large-arabertv02-twitter model, and also provides paid use of the bert-large-arabertv02-twitter. Support call bert-large-arabertv02-twitter model through api, including Node.js, Python, http.
bert-large-arabertv02-twitter huggingface.co is an online trial and call api platform, which integrates bert-large-arabertv02-twitter's modeling effects, including api services, and provides a free online trial of bert-large-arabertv02-twitter, you can try bert-large-arabertv02-twitter online for free by clicking the link below.
aubmindlab bert-large-arabertv02-twitter online free url in huggingface.co:
bert-large-arabertv02-twitter is an open source model from GitHub that offers a free installation service, and any user can find bert-large-arabertv02-twitter on GitHub to install. At the same time, huggingface.co provides the effect of bert-large-arabertv02-twitter install, users can directly use bert-large-arabertv02-twitter installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
bert-large-arabertv02-twitter install url in huggingface.co: