mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-26 08:30:48 +03:00
* 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)]
|
||||
|
||||
|
||||
@pytest.mark.models
|
||||
def test_match_preserved(matcher, EN):
|
||||
doc = EN.tokenizer('I like java')
|
||||
EN.tagger(doc)
|
||||
EN.entity(doc)
|
||||
assert len(doc.ents) == 0
|
||||
doc = EN.tokenizer('I like java')
|
||||
matcher(doc)
|
||||
|
|
Loading…
Reference in New Issue
Block a user