gabrielStanovsky / unified-factuality

Code, data and models for the paper "Integrating Deep Linguistic Features in Factuality Prediction over Unified Datasets" (Stanovsky, Eckle-Kohler, Puzikov, Dagan and Gurevych ACL 2017)
MIT License
7 stars 0 forks source link

add NLTK WordNet to requirements in README #13

Closed judithek closed 7 years ago

judithek commented 7 years ago

when running ./scripts/run_props_server.sh

the following test fails:

assert check_result == expected, "Got: {}; Expected: {}".format(check_result, expected)

and I get:

LookupError: 
**********************************************************************
  Resource u'corpora/wordnet' not found.  Please use the NLTK
  Downloader to obtain the resource:  >>> nltk.download()
  Searched in:
    - '/home/local/UKP/eckle/nltk_data'
    - '/usr/share/nltk_data'
    - '/usr/local/share/nltk_data'
    - '/usr/lib/nltk_data'
    - '/usr/local/lib/nltk_data'
**********************************************************************
gabrielStanovsky commented 7 years ago

Is that the full error log? I wonder what's calling nltk, as I don't have it installed in my setup, and it runs without a problem

judithek commented 7 years ago

the full log before terminating is

INFO:root:Starting Berkeley parser from /usr/local/lib/python2.7/dist-packages/props-1.0-py2.7.egg/props/applications/../berkeleyparser/BerkeleyParser-1.7.jar DEBUG:root:Performing a quick sanity check.. Traceback (most recent call last): File "./parsers/props_server.py", line 101, in check_result = _get_props_predicate_indices("John refused to run") File "./parsers/props_server.py", line 56, in _get_props_predicate_indices graph = single_sentence_props(sent) File "./parsers/props_server.py", line 66, in single_sentence_props g,tree = parseSentences(sent, props_path)[0] File "/usr/local/lib/python2.7/dist-packages/props-1.0-py2.7.egg/props/applications/run.py", line 52, in parseSentences graphs = read_dep_graphs_file(tmp_fn,False,HOME_DIR) File "/usr/local/lib/python2.7/dist-packages/props-1.0-py2.7.egg/props/dependency_tree/tree_readers.py", line 179, in read_dep_graphs_file graphNode.features = get_verbal_features(treeNode) File "/usr/local/lib/python2.7/dist-packages/props-1.0-py2.7.egg/props/proposition_structure/syntactic_item.py", line 38, in get_verbal_features res = f(t) File "/usr/local/lib/python2.7/dist-packages/props-1.0-py2.7.egg/props/dependency_tree/tree.py", line 721, in _VERBAL_PREDICATE_FEATURE_Lemma return lmtzr.lemmatize(self.word, pos_penn_to_wordnet[self.pos]) File "/usr/local/lib/python2.7/dist-packages/nltk/stem/wordnet.py", line 40, in lemmatize lemmas = wordnet._morphy(word, pos) File "/usr/local/lib/python2.7/dist-packages/nltk/corpus/util.py", line 99, in getattr self.load() File "/usr/local/lib/python2.7/dist-packages/nltk/corpus/util.py", line 64, in load except LookupError: raise e LookupError:


Resource u'corpora/wordnet' not found. Please use the NLTK Downloader to obtain the resource: >>> nltk.download() Searched in:

judithek commented 7 years ago

had this issue on the other Linux system as well - should definitely be part of the req.

gabrielStanovsky commented 7 years ago

Added to requirements