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
|
@pytest.fixture
|
||||||
def matcher(EN):
|
def matcher(EN):
|
||||||
patterns = {
|
patterns = {
|
||||||
'Javascript': ['PRODUCT', {}, [{'ORTH': 'JavaScript'}]],
|
'Javascript': ['PRODUCT', {}, [[{'ORTH': 'JavaScript'}]]],
|
||||||
'GoogleNow': ['PRODUCT', {}, [{'ORTH': 'Google'}, {'ORTH': 'Now'}]],
|
'GoogleNow': ['PRODUCT', {}, [[{'ORTH': 'Google'}, {'ORTH': 'Now'}]]],
|
||||||
'Java': ['PRODUCT', {}, [{'ORTH': 'Java'}]],
|
'Java': ['PRODUCT', {}, [[{'ORTH': 'Java'}]]],
|
||||||
}
|
}
|
||||||
return Matcher(EN.vocab, patterns)
|
return Matcher(EN.vocab, patterns)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue