Downloads · 30 days
15
2% of all-time downloads
primasr/multilingualbert-for-eqa-finetuned
multilingualbert-for-eqa-finetuned is a question answering model from primasr. Use it when the input is a question plus a passage. It is set up for transformers.
This model is an experiment I and my friend did as a researcher internship at the National University of Singapore (NUS). We finetuned the model to our datasets in Finance and Healthcare domain, in the Malay Language.
Downloads · 30 days
15
2% of all-time downloads
All-time downloads
651
Public
Repo size
2.2 GB
Likes
0
Public
Click a slice to open those files.
.bin1.1 GB · 99%
From the Hugging Face model README
This model is an experiment I and my friend did as a researcher internship at the National University of Singapore (NUS). We finetuned the model to our datasets in Finance and Healthcare domain, in the Malay Language.
from transformers import TrainingArguments
training_args = TrainingArguments(
output_dir='test_trainer',
evaluation_strategy='epoch',
num_train_epochs=20,
optim='adamw_torch',
report_to='all',
logging_steps=1,
)
from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline
model_name = "primasr/multilingualbert-for-eqa-finetuned"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForQuestionAnswering.from_pretrained(model_name)
nlp = pipeline("question-answering", model=model, tokenizer=tokenizer)