MaartenGr / PolyFuzz

Fuzzy string matching, grouping, and evaluation.
https://maartengr.github.io/PolyFuzz/
MIT License
736 stars 67 forks source link

AttributeError: module 'numpy' has no attribute 'float' #60

Closed pixelrakete closed 1 year ago

pixelrakete commented 1 year ago

Hi there,

with the new version from git it installs numpy-1.24.3 without errors, but when i try to use it e.g. with

distance_model = SpacyEmbeddings("de_core_news_md")
model = PolyFuzz(distance_model)

or any other model, I get the error - module 'numpy' has no attribute 'float' - because polyfuzz uses the deprecated np.float instead just float.

Is there a fix for this?

pixelrakete commented 1 year ago

A complete uninstall from polyfuzz and numpy and a new installation from git solved my issues.