mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-13 17:52:31 +03:00
Fix FUZZY operator definition
The default length of the FUZZY operator is 2 and not 3.
This commit is contained in:
parent
80bc140533
commit
af6d11c9d7
|
@ -70,10 +70,10 @@ distance of 2 and up to 30% of the pattern string length. `FUZZY1`..`FUZZY9` can
|
|||
be used to specify the exact number of allowed edits.
|
||||
|
||||
```python
|
||||
# Match lowercase with fuzzy matching (allows up to 3 edits)
|
||||
# Match lowercase with fuzzy matching (allows up to 2 edits)
|
||||
pattern = [{"LOWER": {"FUZZY": "definitely"}}]
|
||||
|
||||
# Match custom attribute values with fuzzy matching (allows up to 3 edits)
|
||||
# Match custom attribute values with fuzzy matching (allows up to 2 edits)
|
||||
pattern = [{"_": {"country": {"FUZZY": "Kyrgyzstan"}}}]
|
||||
|
||||
# Match with exact Levenshtein edit distance limits (allows up to 4 edits)
|
||||
|
|
Loading…
Reference in New Issue
Block a user