mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 10:26:35 +03:00
Remove print statements in tests
This commit is contained in:
parent
af945ea8e2
commit
796b2f4c1b
|
@ -14,7 +14,5 @@ def test_issue693(EN):
|
|||
doc2 = EN(text2)
|
||||
chunks1 = [chunk for chunk in doc1.noun_chunks]
|
||||
chunks2 = [chunk for chunk in doc2.noun_chunks]
|
||||
for word in doc1:
|
||||
print(word.text, word.dep_, word.head.text)
|
||||
assert len(chunks1) == 2
|
||||
assert len(chunks2) == 2
|
||||
|
|
|
@ -15,7 +15,6 @@ def test_issue955(doc):
|
|||
'''Test that we don't have any nested noun chunks'''
|
||||
seen_tokens = set()
|
||||
for np in doc.noun_chunks:
|
||||
print(np.text, np.root.text, np.root.dep_, np.root.tag_)
|
||||
for word in np:
|
||||
key = (word.i, word.text)
|
||||
assert key not in seen_tokens
|
||||
|
|
Loading…
Reference in New Issue
Block a user