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