Rifky/ID-SQuAD
Viewer • Updated • 154k • 411 • 2
How to use derhan/IndoBert-QA with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("question-answering", model="derhan/IndoBert-QA") # Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("derhan/IndoBert-QA")
model = AutoModelForQuestionAnswering.from_pretrained("derhan/IndoBert-QA")# Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("derhan/IndoBert-QA")
model = AutoModelForQuestionAnswering.from_pretrained("derhan/IndoBert-QA")
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="derhan/IndoBert-QA")