telugu_bertu / README.md
kuppuluri's picture
Update README.md
6d3cd47
|
raw
history blame
901 Bytes
metadata
language: te

telugu_bertu

Model description

This model is a BERT MLM model trained on Telugu. Please use it from the terminal as the web interface has encoding issues.

Intended uses & limitations

How to use

from transformers import AutoModelWithLMHead, AutoTokenizer, pipeline
tokenizer = AutoTokenizer.from_pretrained("kuppuluri/telugu_bertu",
                                          clean_text=False,
                                          handle_chinese_chars=False,
                                          strip_accents=False,
                                          wordpieces_prefix='##')
model = AutoModelWithLMHead.from_pretrained("kuppuluri/telugu_bertu")
fill_mask = pipeline("fill-mask", model=model, tokenizer=tokenizer)
results = fill_mask("మక్దూంపల్లి పేరుతో చాలా [MASK] ఉన్నాయి.")