Question Answering Models
Collection
5 items • Updated
How to use anilguven/bert_tr_qa_turkish_squad with Transformers:
# Use a pipeline as a high-level helper
# Warning: Pipeline type "question-answering" is no longer supported in transformers v5.
# You must load the model directly (see below) or downgrade to v4.x with:
# pip install "transformers<5.0.0"
from transformers import pipeline
pipe = pipeline("question-answering", model="anilguven/bert_tr_qa_turkish_squad") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("anilguven/bert_tr_qa_turkish_squad")
model = AutoModelForQuestionAnswering.from_pretrained("anilguven/bert_tr_qa_turkish_squad", device_map="auto")This model was developed/finetuned for QA task for the Turkish Language. This model was finetuned via Turkish SQuAD dataset.
BibTeX: Peer review process