Downloads · 30 days
8
1% of all-time downloads
asaduas/distilbert-base-uncased-indonesia-squadv2
distilbert-base-uncased-indonesia-squadv2 is a question answering model from asaduas. Use it when the input is a question plus a passage. It is set up for transformers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
8
1% of all-time downloads
All-time downloads
589
Public
Repo size
1.1 GB
Likes
0
Public
Click a slice to open those files.
.bin265 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of distilbert-base-uncased on an unknown dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 2.1676 | 1.0 | 14833 | 2.0658 |
| 1.865 | 2.0 | 29666 | 1.9552 |
| 1.6669 | 3.0 | 44499 | 1.9144 |
{'exact': 42.29721064443732,
'f1': 54.120071422699546,
'total': 24952,
'HasAns_exact': 42.29721064443732,
'HasAns_f1': 54.120071422699546,
'HasAns_total': 24952,
'best_exact': 42.29721064443732,
'best_exact_thresh': 0.0,
'best_f1': 54.120071422699546,
'best_f1_thresh': 0.0}
from transformers import pipeline
qa_pipeline = pipeline(
"question-answering",
model="asaduas/distilbert-base-uncased-indonesia-squadv2",
tokenizer="asaduas/distilbert-base-uncased-indonesia-squadv2"
)
qa_pipeline(
{
'context': "Pada tahun 1512 juga Afonso de Albuquerque mengirim Antonio Albreu dan Franscisco Serrao untuk memimpin armadanya mencari jalan ke tempat asal rempah-rempah di Maluku. Sepanjang perjalanan, mereka singgah di Madura, Bali, dan Lombok. Dengan menggunakan nakhoda-nakhoda Jawa, armada itu tiba di Kepulauan Banda, terus menuju Aibku Utara sampai tiba di Ternate.",
'question': "Siapa yang dikirim oleh Afonso de Albuquerque Pada tahun 1512?"
}
)
Output:
[
{'score': 0.8919295072555542,
'start': 51,
'end': 88,
'answer': ' Antonio Albreu dan Franscisco Serrao'}
]