indolem/indobert-base-uncased

Model

49

stars

13

commits

6

repos using this model

2

linked in READMEs

Aug 9, 2023

updated

bert
fill-mask
indobert
indolem
jax
pytorch
transformers

README

About

IndoBERT is the Indonesian version of BERT model. We train the model using over 220M words, aggregated from three main sources:

  • Indonesian Wikipedia (74M words)
  • news articles from Kompas, Tempo (Tala et al., 2003), and Liputan6 (55M words in total)
  • an Indonesian Web Corpus (Medved and Suchomel, 2017) (90M words).

We trained the model for 2.4M steps (180 epochs) with the final perplexity over the development set being 3.97 (similar to English BERT-base).

This IndoBERT was used to examine IndoLEM - an Indonesian benchmark that comprises of seven tasks for the Indonesian language, spanning morpho-syntax, semantics, and discourse.

TaskMetricBi-LSTMmBERTMalayBERTIndoBERT
POS TaggingAcc95.496.896.896.8
NER UGMF170.971.673.274.9
NER UIF182.282.287.490.1
Dep. Parsing (UD-Indo-GSD)UAS/LAS85.25/80.3586.85/81.7886.99/81.8787.12/82.32
Dep. Parsing (UD-Indo-PUD)UAS/LAS84.04/79.0190.58/85.4488.91/83.5689.23/83.95
Sentiment AnalysisF171.6276.5882.0284.13
SummarizationR1/R2/RL67.96/61.65/67.2468.40/61.66/67.6768.44/61.38/67.7169.93/62.86/69.21
Next Tweet PredictionAcc73.692.493.193.7
Tweet OrderingSpearman corr.0.450.530.510.59

The paper is published at the 28th COLING 2020. Please refer to https://indolem.github.io for more details about the benchmarks.

How to use

Load model and tokenizer (tested with transformers==3.5.1)

from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("indolem/indobert-base-uncased")
model = AutoModel.from_pretrained("indolem/indobert-base-uncased")

Citation

If you use our work, please cite:

@inproceedings{koto2020indolem,
  title={IndoLEM and IndoBERT: A Benchmark Dataset and Pre-trained Language Model for Indonesian NLP},
  author={Fajri Koto and Afshin Rahimi and Jey Han Lau and Timothy Baldwin},
  booktitle={Proceedings of the 28th COLING},
  year={2020}
}

Contributors

indolem

7 commits

fajrikoto

1 commits

FK
Fajri Koto

1 commits

indolem/indobert-base-uncased

Model

49

stars

13

commits

6

repos using this model

2

linked in READMEs

Aug 9, 2023

updated

bert
fill-mask
indobert
indolem
jax
pytorch
transformers

README

About

IndoBERT is the Indonesian version of BERT model. We train the model using over 220M words, aggregated from three main sources:

  • Indonesian Wikipedia (74M words)
  • news articles from Kompas, Tempo (Tala et al., 2003), and Liputan6 (55M words in total)
  • an Indonesian Web Corpus (Medved and Suchomel, 2017) (90M words).

We trained the model for 2.4M steps (180 epochs) with the final perplexity over the development set being 3.97 (similar to English BERT-base).

This IndoBERT was used to examine IndoLEM - an Indonesian benchmark that comprises of seven tasks for the Indonesian language, spanning morpho-syntax, semantics, and discourse.

TaskMetricBi-LSTMmBERTMalayBERTIndoBERT
POS TaggingAcc95.496.896.896.8
NER UGMF170.971.673.274.9
NER UIF182.282.287.490.1
Dep. Parsing (UD-Indo-GSD)UAS/LAS85.25/80.3586.85/81.7886.99/81.8787.12/82.32
Dep. Parsing (UD-Indo-PUD)UAS/LAS84.04/79.0190.58/85.4488.91/83.5689.23/83.95
Sentiment AnalysisF171.6276.5882.0284.13
SummarizationR1/R2/RL67.96/61.65/67.2468.40/61.66/67.6768.44/61.38/67.7169.93/62.86/69.21
Next Tweet PredictionAcc73.692.493.193.7
Tweet OrderingSpearman corr.0.450.530.510.59

The paper is published at the 28th COLING 2020. Please refer to https://indolem.github.io for more details about the benchmarks.

How to use

Load model and tokenizer (tested with transformers==3.5.1)

from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("indolem/indobert-base-uncased")
model = AutoModel.from_pretrained("indolem/indobert-base-uncased")

Citation

If you use our work, please cite:

@inproceedings{koto2020indolem,
  title={IndoLEM and IndoBERT: A Benchmark Dataset and Pre-trained Language Model for Indonesian NLP},
  author={Fajri Koto and Afshin Rahimi and Jey Han Lau and Timothy Baldwin},
  booktitle={Proceedings of the 28th COLING},
  year={2020}
}

Contributors

indolem

7 commits

fajrikoto

1 commits

FK
Fajri Koto

1 commits