mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-05 04:40:20 +03:00
Fix typo
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
This commit is contained in:
parent
9042c466d3
commit
8722f857eb
|
@ -1089,7 +1089,7 @@ def _get_extra_predicates_dict(attr, value_dict, vocab, predicate_types,
|
||||||
continue
|
continue
|
||||||
predicate = cls(len(extra_predicates), attr, value, type_, vocab=vocab,
|
predicate = cls(len(extra_predicates), attr, value, type_, vocab=vocab,
|
||||||
regex=regex, fuzzy=fuzzy, fuzzy_compare=fuzzy_compare)
|
regex=regex, fuzzy=fuzzy, fuzzy_compare=fuzzy_compare)
|
||||||
# Don't create a redundant predicates.
|
# Don't create redundant predicates.
|
||||||
# This helps with efficiency, as we're caching the results.
|
# This helps with efficiency, as we're caching the results.
|
||||||
if predicate.key in seen_predicates:
|
if predicate.key in seen_predicates:
|
||||||
output.append(seen_predicates[predicate.key])
|
output.append(seen_predicates[predicate.key])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user