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/kuppuluri/telugu_bertu/README.md
README.md
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language: te
|
3 |
+
---
|
4 |
+
# telugu_bertu
|
5 |
+
|
6 |
+
## Model description
|
7 |
+
|
8 |
+
This model is a BERT MLM model trained on Telugu.
|
9 |
+
|
10 |
+
## Intended uses & limitations
|
11 |
+
|
12 |
+
#### How to use
|
13 |
+
|
14 |
+
```python
|
15 |
+
from transformers import AutoModelWithLMHead, AutoTokenizer, pipeline
|
16 |
+
tokenizer = AutoTokenizer.from_pretrained("kuppuluri/telugu_bertu",
|
17 |
+
clean_text=False,
|
18 |
+
handle_chinese_chars=False,
|
19 |
+
strip_accents=False,
|
20 |
+
wordpieces_prefix='##')
|
21 |
+
model = AutoModelWithLMHead.from_pretrained("kuppuluri/telugu_bertu")
|
22 |
+
fill_mask = pipeline("fill-mask", model=model, tokenizer=tokenizer)
|
23 |
+
results = fill_mask("మక్దూంపల్లి పేరుతో చాలా [MASK] ఉన్నాయి.")
|
24 |
+
```
|