mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-07 13:44:55 +03:00
fix naming
This commit is contained in:
parent
b5ce7a6e96
commit
52ede05f9d
|
@ -36,63 +36,63 @@ def test_repr_doc_unicode(EN):
|
||||||
|
|
||||||
def test_print_span(EN):
|
def test_print_span(EN):
|
||||||
try:
|
try:
|
||||||
doc = EN(u'I sat down for coffee at the coffee store')[-3:]
|
span = EN(u'I sat down for coffee at the coffee store')[-3:]
|
||||||
print(doc)
|
print(span)
|
||||||
except Exception:
|
except Exception:
|
||||||
pytest.fail("Printing failed")
|
pytest.fail("Printing failed")
|
||||||
|
|
||||||
|
|
||||||
def test_repr_span(EN):
|
def test_repr_span(EN):
|
||||||
try:
|
try:
|
||||||
doc = EN(u'I sat down for coffee at the coffee store')[-3:]
|
span = EN(u'I sat down for coffee at the coffee store')[-3:]
|
||||||
print(repr(doc))
|
print(repr(span))
|
||||||
except Exception:
|
except Exception:
|
||||||
pytest.fail("Printing failed")
|
pytest.fail("Printing failed")
|
||||||
|
|
||||||
|
|
||||||
def test_print_span_unicode(EN):
|
def test_print_span_unicode(EN):
|
||||||
try:
|
try:
|
||||||
doc = EN(u'I sat down for coffee at the café')[-3:]
|
span = EN(u'I sat down for coffee at the café')[-3:]
|
||||||
print(doc)
|
print(span)
|
||||||
except Exception:
|
except Exception:
|
||||||
pytest.fail("Printing failed")
|
pytest.fail("Printing failed")
|
||||||
|
|
||||||
|
|
||||||
def test_repr_span_unicode(EN):
|
def test_repr_span_unicode(EN):
|
||||||
try:
|
try:
|
||||||
doc = EN(u'I sat down for coffee at the café')[-3:]
|
span = EN(u'I sat down for coffee at the café')[-3:]
|
||||||
print(repr(doc))
|
print(repr(span))
|
||||||
except Exception:
|
except Exception:
|
||||||
pytest.fail("Printing failed")
|
pytest.fail("Printing failed")
|
||||||
|
|
||||||
|
|
||||||
def test_print_token(EN):
|
def test_print_token(EN):
|
||||||
try:
|
try:
|
||||||
doc = EN(u'I sat down for coffee at the coffee store')[-1]
|
token = EN(u'I sat down for coffee at the coffee store')[-1]
|
||||||
print(doc)
|
print(token)
|
||||||
except Exception:
|
except Exception:
|
||||||
pytest.fail("Printing failed")
|
pytest.fail("Printing failed")
|
||||||
|
|
||||||
|
|
||||||
def test_repr_token(EN):
|
def test_repr_token(EN):
|
||||||
try:
|
try:
|
||||||
doc = EN(u'I sat down for coffee at the coffee store')[-1]
|
token = EN(u'I sat down for coffee at the coffee store')[-1]
|
||||||
print(repr(doc))
|
print(repr(token))
|
||||||
except Exception:
|
except Exception:
|
||||||
pytest.fail("Printing failed")
|
pytest.fail("Printing failed")
|
||||||
|
|
||||||
|
|
||||||
def test_print_token_unicode(EN):
|
def test_print_token_unicode(EN):
|
||||||
try:
|
try:
|
||||||
doc = EN(u'I sat down for coffee at the café')[-1]
|
token = EN(u'I sat down for coffee at the café')[-1]
|
||||||
print(doc)
|
print(token)
|
||||||
except Exception:
|
except Exception:
|
||||||
pytest.fail("Printing failed")
|
pytest.fail("Printing failed")
|
||||||
|
|
||||||
|
|
||||||
def test_repr_token_unicode(EN):
|
def test_repr_token_unicode(EN):
|
||||||
try:
|
try:
|
||||||
doc = EN(u'I sat down for coffee at the café')[-1]
|
token = EN(u'I sat down for coffee at the café')[-1]
|
||||||
print(repr(doc))
|
print(repr(token))
|
||||||
except Exception:
|
except Exception:
|
||||||
pytest.fail("Printing failed")
|
pytest.fail("Printing failed")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user