Instructions to use aubmindlab/bert-base-arabertv2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aubmindlab/bert-base-arabertv2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="aubmindlab/bert-base-arabertv2")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("aubmindlab/bert-base-arabertv2") model = AutoModelForMaskedLM.from_pretrained("aubmindlab/bert-base-arabertv2") - Inference
- Notebooks
- Google Colab
- Kaggle
AUB MIND LAB commited on
Commit ·
a9b9c49
1
Parent(s): db8a5c3
Update README.md
Browse files
README.md
CHANGED
|
@@ -83,7 +83,7 @@ It is recommended to apply our preprocessing function before training/testing on
|
|
| 83 |
from arabert.preprocess import ArabertPreprocessor
|
| 84 |
|
| 85 |
model_name="bert-base-arabertv2"
|
| 86 |
-
arabert_prep = ArabertPreprocessor(model_name=model_name
|
| 87 |
|
| 88 |
text = "ولن نبالغ إذا قلنا إن هاتف أو كمبيوتر المكتب في زمننا هذا ضروري"
|
| 89 |
arabert_prep.preprocess(text)
|
|
|
|
| 83 |
from arabert.preprocess import ArabertPreprocessor
|
| 84 |
|
| 85 |
model_name="bert-base-arabertv2"
|
| 86 |
+
arabert_prep = ArabertPreprocessor(model_name=model_name)
|
| 87 |
|
| 88 |
text = "ولن نبالغ إذا قلنا إن هاتف أو كمبيوتر المكتب في زمننا هذا ضروري"
|
| 89 |
arabert_prep.preprocess(text)
|