mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-06 05:10:21 +03:00
remove unnecessary dependency
This commit is contained in:
parent
ee25d434b6
commit
0859e391c6
|
@ -8,7 +8,6 @@ requires = [
|
||||||
"thinc>=8.1.0,<8.2.0",
|
"thinc>=8.1.0,<8.2.0",
|
||||||
"pathy",
|
"pathy",
|
||||||
"numpy>=1.15.0",
|
"numpy>=1.15.0",
|
||||||
"rapidfuzz>=2.4.0,<3.0.0",
|
|
||||||
"rapidfuzz_capi>=1.0.5,<2.0.0",
|
"rapidfuzz_capi>=1.0.5,<2.0.0",
|
||||||
]
|
]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
|
@ -708,7 +708,7 @@ cdef int8_t get_is_match(PatternStateC state,
|
||||||
for attr in spec.attrs[:spec.nr_attr]:
|
for attr in spec.attrs[:spec.nr_attr]:
|
||||||
token_attr_value = get_token_attr_for_matcher(token.c, attr.attr)
|
token_attr_value = get_token_attr_for_matcher(token.c, attr.attr)
|
||||||
if token_attr_value != attr.value:
|
if token_attr_value != attr.value:
|
||||||
if fuzzy != 0: # and n_fuzzy_attrs > 0:
|
if fuzzy:
|
||||||
fuzzy_match = False
|
fuzzy_match = False
|
||||||
for i in range(n_fuzzy_attrs):
|
for i in range(n_fuzzy_attrs):
|
||||||
if attr.attr == fuzzy_attrs[i]:
|
if attr.attr == fuzzy_attrs[i]:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user