Downloads · 30 days
23
1% of all-time downloads
fathan/indojave-codemixed-roberta-base
indojave-codemixed-roberta-base is a fill-mask model from fathan. Use it when you need the model to fill a missing word. It is set up for transformers.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
23
1% of all-time downloads
All-time downloads
1.6K
Public
Repo size
299 GB
Likes
0
Public
Click a slice to open those files.
.bin504 MB · 99%
From the Hugging Face model README
This is a pre-trained masked language model for code-mixed Indonesian-Javanese-English tweets data. This model is trained based on RoBERTa model utilizing Hugging Face's Transformers library.
The Twitter data is collected from January 2022 until January 2023. The tweets are collected using 8698 random keyword phrases. To make sure the retrieved data are code-mixed, we use keyword phrases that contain code-mixed Indonesian, Javanese, or English words. The following are few examples of the keyword phrases:
We acquire 40,788,384 raw tweets. We apply first stage pre-processing tasks such as:
After the first stage pre-processing, we obtain 17,385,773 tweets. In the second stage pre-processing, we do the following pre-processing tasks:
Finally, we have 28,121,693 sentences for the training process. This pretraining data will not be opened to public due to Twitter policy.
| Model name | Base model | Size of training data | Size of validation data |
|---|---|---|---|
indojave-codemixed-roberta-base | RoBERTa | 2.24 GB of text | 249 MB of text |
We train the data with 3 epochs and total steps of 296K for 16 days. The following are the results obtained from the training:
| train loss | eval loss | eval perplexity |
|---|---|---|
| 3.586 | 3.1174 | 22.5867 |
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("fathan/indojave-codemixed-roberta-base")
model = AutoModel.from_pretrained("fathan/indojave-codemixed-roberta-base")
from transformers import pipeline
pretrained_model = "fathan/indojave-codemixed-roberta-base"
fill_mask = pipeline(
"fill-mask",
model=pretrained_model,
tokenizer=pretrained_model
)
The following hyperparameters were used during training: