mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-19 20:52:23 +03:00
remove irrelevant unit test (behaviour clarified by new error msgs around doc.spans)
This commit is contained in:
parent
c7f586c4ba
commit
0c15ab7ca1
|
@ -78,15 +78,6 @@ def test_initialized_short(nlp):
|
||||||
print(doc.spans)
|
print(doc.spans)
|
||||||
|
|
||||||
|
|
||||||
def test_initialized_2(nlp):
|
|
||||||
nlp.add_pipe("coref")
|
|
||||||
nlp.initialize()
|
|
||||||
assert nlp.pipe_names == ["coref"]
|
|
||||||
text = "She gave me her pen."
|
|
||||||
# TODO: This crashes though it works when using intermediate var 'doc' !
|
|
||||||
print(nlp(text).spans)
|
|
||||||
|
|
||||||
|
|
||||||
def test_coref_serialization(nlp):
|
def test_coref_serialization(nlp):
|
||||||
# Test that the coref component can be serialized
|
# Test that the coref component can be serialized
|
||||||
nlp.add_pipe("coref", last=True)
|
nlp.add_pipe("coref", last=True)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user