ratishsp / data2text-plan-py

Code for AAAI 2019 paper on Data-to-Text Generation with Content Selection and Planning
163 stars 46 forks source link

version of pyxdameraulevenshtein #4

Closed shubhamagarwal92 closed 5 years ago

shubhamagarwal92 commented 5 years ago

I installed it using pip install pyxdameraulevenshtein

However, I am facing this ValueError:

  File "non_rg_metrics.py", line 2, in <module>
    from pyxdameraulevenshtein import normalized_damerau_levenshtein_distance
  File "__init__.pxd", line 918, in init pyxdameraulevenshtein
ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C header, got 192 from PyObject
ratishsp commented 5 years ago

I am not sure why you get this error. There is ValueError when the module is not able to parse the input. What is the input that you provide? Is it not a number word such as one, two etc?

shubhamagarwal92 commented 5 years ago

Umm.. its not able to import the package. That is why I am asking the version, in fact the requirements for data2text repo.

shubhamagarwal92 commented 5 years ago

Apparently, they released an updated version 1.5.2 which requires numpy 1.16.1

ratishsp commented 5 years ago

I could share with you the version I have locally with me.

shubhamagarwal92 commented 5 years ago

I got this running for now. Will let you know if I face any more issues. Thanks :)