QUESTION
and CONTEXT
.
Position of contextual text corresponding to the answer.
Set the QUESTION
and CONTEXT
as an argument.
$ python3 bert_question_answering.py -q "What is ailia SDK ?" -c "ailia SDK is a highly performant single inference engine for multiple platforms and hardware"
...
Answer : [{'score': 0.5031098127365112, 'start': 13, 'end': 91, 'answer': 'a highly performant single inference engine for multiple platforms and hardware'}]
PyTorch 1.6.0
ONNX opset = 11