1
1
mirror of https://github.com/explosion/spaCy.git synced 2025-03-31 23:34:12 +03:00

Add regression test for

This commit is contained in:
Matthew Honnibal 2018-09-28 15:18:30 +02:00
parent e3e9fe18d4
commit d5a6c63b62

View File

@ -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)