mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
remove accidental commit
This commit is contained in:
parent
1724a4f75b
commit
c4d030dbf6
|
@ -5,7 +5,7 @@ import pytest
|
|||
import re
|
||||
from mock import Mock
|
||||
from spacy.matcher import Matcher, DependencyMatcher
|
||||
from spacy.tokens import Doc, Token, Span
|
||||
from spacy.tokens import Doc, Token
|
||||
from ..doc.test_underscore import clean_underscore
|
||||
|
||||
|
||||
|
@ -458,10 +458,3 @@ def test_matcher_callback(en_vocab):
|
|||
doc = Doc(en_vocab, words=["This", "is", "a", "test", "."])
|
||||
matches = matcher(doc)
|
||||
mock.assert_called_once_with(matcher, doc, 0, matches)
|
||||
|
||||
def test_matcher_span(matcher):
|
||||
text = "JavaScript is good but Java is better"
|
||||
doc = Doc(matcher.vocab, words=text.split())
|
||||
span = Span(doc, 0, 3)
|
||||
matches = matcher(span.as_doc())
|
||||
assert len(matches) == 1
|
Loading…
Reference in New Issue
Block a user