mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-13 13:17:06 +03:00
12 lines
256 B
Python
12 lines
256 B
Python
|
from ...tokens import Doc
|
||
|
from ...vocab import Vocab
|
||
|
|
||
|
def test_issue599():
|
||
|
doc = Doc(Vocab())
|
||
|
doc.is_tagged = True
|
||
|
doc.is_parsed = True
|
||
|
bytes_ = doc.to_bytes()
|
||
|
doc2 = Doc(doc.vocab)
|
||
|
doc2.from_bytes(bytes_)
|
||
|
assert doc2.is_parsed
|