sogou / SogouMRCToolkit

This toolkit was designed for the fast and efficient development of modern machine comprehension models, including both published models and original prototypes.
Apache License 2.0
746 stars 164 forks source link

no 'session' and TypeError #18

Closed yanchlu closed 5 years ago

yanchlu commented 5 years ago

Two questions come up when I run run_bert_coqa.py. Traceback (most recent call last): File "/data2/wangfuyu/NQ/ycl/SMRCToolkit-master/sogou_mrc/model/base_model.py", line 21, in __del__ self.session.close() AttributeError: 'BertCoQA' object has no attribute 'session'

File "/data2/wangfuyu/NQ/ycl/SMRCToolkit-master/examples/run_coqa/run_bert_coqa.py", line 37, in <module> model = BertCoQA(bert_dir=bert_dir,answer_verificatioin=True) TypeError: __init__() got an unexpected keyword argument 'answer_verificatioin'

The version of my python is 3.6.8 Could anyone give me some advices?

yanchlu commented 5 years ago

By the way, what's the difference between run_bert_coqa.py and run_bert_coqa_base.py?

yxk9810 commented 5 years ago

run_bert_coqa_base train model based on bert without answer verification. Sorry for misspelling the parameter, it should be answer_verification,

yanchlu commented 5 years ago

Thanks a lot.