mirror of https://github.com/explosion/spaCy.git
Add regression test for #2482
This commit is contained in:
parent
e3e9fe18d4
commit
d5a6c63b62
|
@ -61,3 +61,10 @@ def test_issue2385():
|
|||
def test_issue2385_biluo(tags):
|
||||
"""Test that BILUO-compatible tags aren't modified."""
|
||||
assert iob_to_biluo(tags) == list(tags)
|
||||
|
||||
def test_issue2482():
|
||||
'''Test we can serialize and deserialize a blank NER or parser model.'''
|
||||
nlp = Italian()
|
||||
nlp.add_pipe(nlp.create_pipe('ner'))
|
||||
b = nlp.to_bytes()
|
||||
nlp2 = Italian().from_bytes(b)
|
||||
|
|
Loading…
Reference in New Issue