* Update matcher tests

This commit is contained in:
Matthew Honnibal 2015-08-06 16:09:28 +02:00
parent 59c3bf60a6
commit 2767979135
1 changed files with 3 additions and 3 deletions

View File

@ -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)