This model is a fine-tuned version of
indolem/indobert-base-uncased on the None dataset.
It achieves the following results on the evaluation set:
IndoBERT is the Indonesian version of BERT model. We train the model using over 220M words, aggregated from three main sources:
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.
SQuAD2.0 combines the 100,000 questions in SQuAD1.1 with over 50,000 unanswerable questions written adversarially by crowdworkers to look similar to answerable ones. To do well on SQuAD2.0, systems must not only answer questions when possible, but also determine when no answer is supported by the paragraph and abstain from answering.
The model was trained on a Tesla T4 GPU and 12GB of RAM.
1from transformers import pipeline
2
3qa_pipeline = pipeline(
4 "question-answering",
5 model="esakrissa/IndoBERT-SQuAD",
6 tokenizer="esakrissa/IndoBERT-SQuAD"
7)
8
9qa_pipeline({
10 'context': """Sudah sejak tahun 1920-an, Ubud terkenal di antara wisatawan barat. Kala itu pelukis Jerman; Walter Spies dan pelukis Belanda; Rudolf Bonnet menetap di sana. Mereka dibantu oleh Tjokorda Gde Agung Sukawati, dari Puri Agung Ubud. Sekarang karya mereka bisa dilihat di Museum Puri Lukisan, Ubud.""",
11 'question': "Sejak kapan Ubud terkenal di antara wisatawan barat?"
12})
1{
2'answer': '1920-an'
3'start': 18,
4'end': 25,
5'score': 0.8675463795661926,
6}
[1]Fajri Koto and Afshin Rahimi and Jey Han Lau and Timothy Baldwin. 2020. IndoLEM and IndoBERT: A Benchmark Dataset and Pre-trained Language Model for Indonesian NLP. Proceedings of the 28th COLING.
[2]rifkybujana/IndoBERT-QA