Issues: Moverscore demo code fails to run because numpy.float64 or numpy.float32 types are deprecated for the mainstream numpy version >= 1.24. The error is as below for any numpy version >= 1.24.
Code to run
refs = ['The dog bit the man.', 'The dog had bit the man.']
sys = 'The dog bit the man.'
mover = sentence_score(sys, refs)
print(mover)
Exception raised:
Changes
Fixes: I replaced all occurrences with python float type as suggested in this answer and tested it with Moverscore -- it works. The numpy new version >= 1.24 should have compatibility for other functions in the older version.
Context
Issues: Moverscore demo code fails to run because numpy.float64 or numpy.float32 types are deprecated for the mainstream numpy version >=
1.24
. The error is as below for any numpy version >= 1.24.Code to run
Exception raised:![image](https://github.com/AIPHES/emnlp19-moverscore/assets/31399290/8b847446-5c4f-4d81-8103-6cd1aa6c45e1)
Changes
Fixes: I replaced all occurrences with python float type as suggested in this answer and tested it with Moverscore -- it works. The numpy new version >=
1.24
should have compatibility for other functions in the older version.