statmt/cc100
Updated • 2.22k • 106
How to use amitness/roberta-base-ne with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="amitness/roberta-base-ne") # Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("amitness/roberta-base-ne")
model = AutoModelForMaskedLM.from_pretrained("amitness/roberta-base-ne")Roberta trained from scratch on the Nepali CC-100 dataset with 12 million sentences.
from transformers import pipeline
pipe = pipeline(
"fill-mask",
model="amitness/nepbert",
tokenizer="amitness/nepbert"
)
print(pipe(u"तिमीलाई कस्तो <mask>?"))
The data was taken from the nepali language subset of CC-100 dataset.
The model was trained on Google Colab using 1x Tesla V100.