Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yana-xuyan committed Apr 4, 2020
1 parent 2c2d9db commit 70c8065
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions project/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@

import json
from retrieval import information_retrieval
from qa import QaModule, print_answers_in_file
from caireCovid import QaModule, print_answers_in_file

all_results, data_for_qa = information_retrieval("question_generation/task1_question.json")

qa_model = QaModule(["mrqa", "biobert"])
qa_model = QaModule(["mrqa", "biobert"], ["/home/xuyan/mrqa/xlnet-qa/experiment/multiqa-1e-5-tpu/1564469515", "/home/xuyan/kaggle/bioasq-biobert/model/1585470591"], \
"./mrqa/model/spiece.model", "./biobert/model/bert_config.json", "./biobert/model/vocab.txt"
)

answers = qa_model.getAnswers(data_for_qa)

Expand Down

0 comments on commit 70c8065

Please sign in to comment.