mirror of https://github.com/explosion/spaCy.git
* Mark a matcher test as requiring the model
This commit is contained in:
parent
f6ec5bf1b0
commit
fc8f7b123d
|
@ -48,10 +48,10 @@ def test_match_multi(matcher, EN):
|
||||||
(EN.vocab.strings['PRODUCT'], 5, 6)]
|
(EN.vocab.strings['PRODUCT'], 5, 6)]
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.models
|
||||||
def test_match_preserved(matcher, EN):
|
def test_match_preserved(matcher, EN):
|
||||||
doc = EN.tokenizer('I like java')
|
doc = EN.tokenizer('I like java')
|
||||||
EN.tagger(doc)
|
EN.tagger(doc)
|
||||||
EN.entity(doc)
|
|
||||||
assert len(doc.ents) == 0
|
assert len(doc.ents) == 0
|
||||||
doc = EN.tokenizer('I like java')
|
doc = EN.tokenizer('I like java')
|
||||||
matcher(doc)
|
matcher(doc)
|
||||||
|
|
Loading…
Reference in New Issue