Views
No views yet
google/bigbird-roberta-base model on the SQuAD 2.0 dataset for English extractive question answering.1from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline
2model_name = "FredNajjar/bigbird-QA-squad_v2.2"
3nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
4QA_input = {
5 'question': 'Your question here',
6 'context': 'Your context here'
7}
8res = nlp(QA_input)