mirror of https://github.com/explosion/spaCy.git
* Update matcher tests
This commit is contained in:
parent
59c3bf60a6
commit
2767979135
|
@ -11,9 +11,9 @@ from spacy.vocab import Vocab
|
|||
@pytest.fixture
|
||||
def matcher(EN):
|
||||
patterns = {
|
||||
'Javascript': ['PRODUCT', {}, [{'ORTH': 'JavaScript'}]],
|
||||
'GoogleNow': ['PRODUCT', {}, [{'ORTH': 'Google'}, {'ORTH': 'Now'}]],
|
||||
'Java': ['PRODUCT', {}, [{'ORTH': 'Java'}]],
|
||||
'Javascript': ['PRODUCT', {}, [[{'ORTH': 'JavaScript'}]]],
|
||||
'GoogleNow': ['PRODUCT', {}, [[{'ORTH': 'Google'}, {'ORTH': 'Now'}]]],
|
||||
'Java': ['PRODUCT', {}, [[{'ORTH': 'Java'}]]],
|
||||
}
|
||||
return Matcher(EN.vocab, patterns)
|
||||
|
||||
|
|
Loading…
Reference in New Issue