rajpurkar/squad
Viewer • Updated • 98.2k • 157k • 363
How to use DracolIA/BERT-Context-based-QA with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("question-answering", model="DracolIA/BERT-Context-based-QA") # Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("DracolIA/BERT-Context-based-QA")
model = AutoModelForQuestionAnswering.from_pretrained("DracolIA/BERT-Context-based-QA")# Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("DracolIA/BERT-Context-based-QA")
model = AutoModelForQuestionAnswering.from_pretrained("DracolIA/BERT-Context-based-QA")Original Author: BastienHot
Date created: 2024/03/21
Datasets: SQuad
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="DracolIA/BERT-Context-based-QA")