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)
Test that PhraseMatcher.vocab can be accessed (like Matcher.vocab).
spacy/tests/matcher/test_phrase_matcher.py