smartschat / cort

A toolkit for coreference resolution and error analysis.
MIT License
129 stars 34 forks source link

Code not working directly #5

Closed preritjain closed 8 years ago

preritjain commented 8 years ago

I was using model-pair-train.obj model provided in your repository. On running the command provided for coreference resolution for raw data, I got the following error. Traceback (most recent call last): File "/usr/local/bin/cort-predict-raw", line 132, in <module> testing_corpus = p.run_on_docs("corpus", args.input_filename) File "/usr/local/lib/python3.4/dist-packages/cort/preprocessing/pipeline.py", line 38, in run_on_docs codecs.open(doc, "r", "utf-8") File "/usr/local/lib/python3.4/dist-packages/cort/preprocessing/pipeline.py", line 82, in run_on_doc pdeprel=None TypeError: __new__() missing 1 required positional argument: 'extra' This got resolved when I added a line extra = None following line 82 in cort/preprocessing/pipeline.py

chardmeier commented 8 years ago

Confirmed.

smartschat commented 8 years ago

Thanks for reporting the issue! In v0.3.1, PyStanfordDependencies' API has changed, I'll have to make sure that it works with both versions of the API. I'll update cort ASAP.

Edit: I've decided otherwise, cort will now require PyStanfordDependencies v0.3.1.