From c8385508f93fed9a70ebfa71a87ad11e649a8dae Mon Sep 17 00:00:00 2001 From: Julian Risch Date: Fri, 5 Mar 2021 16:37:51 +0100 Subject: [PATCH] Changing QA_input format in tutorial --- docs/basic_usage.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/basic_usage.rst b/docs/basic_usage.rst index 7878eeb6d..dfd2d8995 100644 --- a/docs/basic_usage.rst +++ b/docs/basic_usage.rst @@ -55,8 +55,8 @@ Use a `public model `__ or your own to get pred nlp = Inferencer.load("deepset/bert-large-uncased-whole-word-masking-squad2", task_type="question_answering") # Run predictions - QA_input = [{"qas": ["Why is model conversion important?"], - "context": "Model conversion lets people easily switch between frameworks."}] + QA_input = [{"questions": ["Why is model conversion important?"], + "text": "Model conversion lets people easily switch between frameworks."}] result = nlp.inference_from_dicts(dicts=QA_input) 3. Showcase your model (API + UI)