mirror of https://github.com/explosion/spaCy.git
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)
|