mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-14 18:40:33 +03:00
Update fix for match ID vocab
This commit is contained in:
parent
d4141302b6
commit
34550ef662
|
@ -177,7 +177,7 @@ cdef class PhraseMatcher:
|
|||
DOCS: https://spacy.io/api/phrasematcher#add
|
||||
"""
|
||||
|
||||
_ = self.vocab.strings[key]
|
||||
_ = self.vocab[key]
|
||||
self._callbacks[key] = on_match
|
||||
self._keywords.setdefault(key, [])
|
||||
self._docs.setdefault(key, set())
|
||||
|
|
Loading…
Reference in New Issue
Block a user