From 5010fcbd3aa26df86f987b4b5888d93d47f4efe8 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 14 Sep 2024 13:13:05 +0200 Subject: [PATCH] Fix numpy constant --- spacy/language.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/language.py b/spacy/language.py index 3a86f1b9b..57b17943a 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -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