mirror of https://github.com/explosion/spaCy.git
Fix numpy constant
This commit is contained in:
parent
de4f19f3a3
commit
5010fcbd3a
|
@ -2309,7 +2309,7 @@ class Language:
|
|||
|
||||
|
||||
def _replace_numpy_floats(meta_dict: dict) -> dict:
|
||||
return convert_recursive(lambda v: isinstance(v, numpy.floaty), lambda v: float(v), dict(meta_dict))
|
||||
return convert_recursive(lambda v: isinstance(v, numpy.floating), lambda v: float(v), dict(meta_dict))
|
||||
|
||||
|
||||
@dataclass
|
||||
|
|
Loading…
Reference in New Issue