mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 21:57:15 +03:00
11 lines
337 B
Python
11 lines
337 B
Python
|
from spacy.matcher import Matcher, PhraseMatcher
|
||
|
from spacy.vocab import Vocab
|
||
|
|
||
|
|
||
|
def test_issue4373():
|
||
|
"""Test that PhraseMatcher.vocab can be accessed (like Matcher.vocab)."""
|
||
|
matcher = Matcher(Vocab())
|
||
|
assert isinstance(matcher.vocab, Vocab)
|
||
|
matcher = PhraseMatcher(Vocab())
|
||
|
assert isinstance(matcher.vocab, Vocab)
|