File size: 267 Bytes
b4d0d8e
 
 
 
 
1
2
3
4
5
from transformers import pipeline

def bert(context, question):
    question_answerer = pipeline("question-answering",  "alexandre-huynh/bert-base-uncased-finetuned-squad-single-epoch", framework="tf")
    return(question_answerer(context=context, question=question))