sheffieldnlp / naacl2018-fever

Fact Extraction and VERification baseline published in NAACL2018
http://fever.ai
Apache License 2.0
127 stars 41 forks source link

NameError: name 'get_count_matrix' is not defined #41

Closed maxsonate closed 6 years ago

maxsonate commented 6 years ago

I see this after cloning the latest version. Traceback (most recent call last): File "src/scripts/build_tfidf.py", line 34, in count_matrix, doc_dict = get_count_matrix( NameError: name 'get_count_matrix' is not defined Looking at drqascripts.retriever.build_tfidf: class TfIdfBuilder(builtins.object): get_count_matrix(self)

But it's called as a static class in src/scripts/build_tfidf.py

maxsonate commented 6 years ago

It works fine if I change the requirements to use drqna 0.1.1

j6mes commented 6 years ago

Thanks for reporting it. It's a slight oversight on my part. I had to rewrite part of DrQA to make it thread-safe when running in parallel for the IR part of the script.

Just pushed the latest change to v0.2

J