It is RoBERTa-base model pre-trained with indonesian Wikipedia using a masked language modeling (MLM) objective. This
model is uncased: it does not make a difference between indonesia and Indonesia.
This is one of several other language models that have been pre-trained with indonesian datasets. More detail about
its usage on downstream tasks (text classification, text generation, etc) is available at
Transformer based Indonesian Language Models
Intended uses & limitations
How to use
You can use this model directly with a pipeline for masked language modeling:
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='cahya/roberta-base-indonesian-522M')
>>> unmasker("Ibu ku sedang bekerja <mask> supermarket")
Here is how to use this model to get the features of a given text in PyTorch:
from transformers import RobertaTokenizer, RobertaModel
model_name='cahya/roberta-base-indonesian-522M'
tokenizer = RobertaTokenizer.from_pretrained(model_name)
model = RobertaModel.from_pretrained(model_name)
text = "Silakan diganti dengan text apa saja."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
and in Tensorflow:
from transformers import RobertaTokenizer, TFRobertaModel
model_name='cahya/roberta-base-indonesian-522M'
tokenizer = RobertaTokenizer.from_pretrained(model_name)
model = TFRobertaModel.from_pretrained(model_name)
text = "Silakan diganti dengan text apa saja."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
Training data
This model was pre-trained with 522MB of indonesian Wikipedia.
The texts are lowercased and tokenized using WordPiece and a vocabulary size of 32,000. The inputs of the model are
then of the form:
<s> Sentence A </s> Sentence B </s>
Runs of cahya roberta-base-indonesian-522M on huggingface.co
561
Total runs
0
24-hour runs
-14
3-day runs
-183
7-day runs
-1.2K
30-day runs
More Information About roberta-base-indonesian-522M huggingface.co Model
More roberta-base-indonesian-522M license Visit here:
roberta-base-indonesian-522M huggingface.co is an AI model on huggingface.co that provides roberta-base-indonesian-522M's model effect (), which can be used instantly with this cahya roberta-base-indonesian-522M model. huggingface.co supports a free trial of the roberta-base-indonesian-522M model, and also provides paid use of the roberta-base-indonesian-522M. Support call roberta-base-indonesian-522M model through api, including Node.js, Python, http.
roberta-base-indonesian-522M huggingface.co is an online trial and call api platform, which integrates roberta-base-indonesian-522M's modeling effects, including api services, and provides a free online trial of roberta-base-indonesian-522M, you can try roberta-base-indonesian-522M online for free by clicking the link below.
cahya roberta-base-indonesian-522M online free url in huggingface.co:
roberta-base-indonesian-522M is an open source model from GitHub that offers a free installation service, and any user can find roberta-base-indonesian-522M on GitHub to install. At the same time, huggingface.co provides the effect of roberta-base-indonesian-522M install, users can directly use roberta-base-indonesian-522M installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
roberta-base-indonesian-522M install url in huggingface.co: