Downloads · 30 days
15
1% of all-time downloads
fathan/ijelid-ft-indojave-indobertweet
ijelid-ft-indojave-indobertweet is a token classification model from fathan. Use it when you need labels on individual words, such as names. It is set up for transformers.
This model is designed for the task of language identification, specifically focusing on code-mixed language data from Indonesian, Javanese, and English Twitter posts. It can identify whether a given text is in Indone…
Downloads · 30 days
15
1% of all-time downloads
All-time downloads
1.8K
Public
Repo size
880 MB
Likes
0
Public
Click a slice to open those files.
.bin440 MB · 100%
From the Hugging Face model README
This model is designed for the task of language identification, specifically focusing on code-mixed language data from Indonesian, Javanese, and English Twitter posts. It can identify whether a given text is in Indonesian (ID), Javanese (JV), English (EN), a mix of Indonesian and English (MIX_ID_EN), a mix of Indonesian and Javanese (MIX_ID_JV), a mix of Javanese and English (MIX_JV_EN), or other (OTH).
This model is intended for academic researchers and practitioners who need to identify and analyze the language of text data, particularly in the context of social media where code-mixing is common.
This model is a fine-tuned version of IndoJavE-IndoBERTweet ona dataset of code-mixed Indonesian-Javanese-English Twitter Data. Further details and access to the dataset can be found here.
We conducted hyperparameter search using Optuna with the following search values and range:
| Hyperparameter | Values or Range |
|---|---|
| Number of training epochs | 2 to 10 |
| Learning rate | 1e-4, 3e-4, 2e-5, 3e-5, 5e-5 |
| Per device batch size | 8, 16, 32, 64 |
| Weight decay | 4e-5 to 0.01 |
The model was fine-tuned using 4 NVIDIA Tesla V100-SXM2-32GB GPUs provided by Universitas Islam Indonesia. The fine-tuning process was conducted using the following best hyperparameter values:
{
"num_epochs": 8,
"learning_rate": 2e-05,
"per_device_train_batch_size": 8,
"per_device_eval_batch_size": 64,
"weight_decay": 0.0017197732539373108
}
The model achieved the following scores on the test set:
The dataset used for training includes user-generated content from Twitter, which has been anonymized and is compliant with ethical standards for research. Personal information has been removed to ensure privacy.
Performance may vary on text data that significantly differs from the Twitter data it was trained on. It is recommended to evaluate the model on specific data of interest before using it for critical applications.
from transformers import AutoModelForTokenClassification, AutoTokenizer
model_name = "fathan/ijelid-ft-indojave-indobertweet"
model = AutoModelForTokenClassification.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)
# Replace the following text with your own input
text = "Productnya bagus bgt guys, nek bales chat cepet tur pelayanane apik."
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
@misc{ijelid-ft-indojave-indobertweet,
author = {Ahmad Fathan Hidayatullah},
title = {Indonesian-Javanese-English Language Identification (IJELID) using IndoJavE-IndoBERTweet pre-trained model.},
year = {2023},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/fathan/ijelid-ft-indojave-indobertweet}}
}