You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> doc.is_parsed
True
>>> doc2.is_parsed
False
>>> [_ for _ in doc.sents]
[]
>>> [_ for _ in doc2.sents]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 1, in <listcomp>
File "spacy/tokens/doc.pyx", line 395, in __get__ (spacy/tokens/doc.cpp:9506)
ValueError: sentence boundary detection requires the dependency parse, which requires data to be installed. If you haven't done so, run:
python -m spacy.en.download all
to install the data
Your Environment
Operating System: Linux
Python Version Used: 3.5
spaCy Version Used: latest pip release
Environment Information:
The text was updated successfully, but these errors were encountered:
zifeishan
changed the title
Serialization is inconsistent for empty documents
Deserialization is inconsistent for empty documents
Nov 2, 2016
Thanks! Mixed feelings about my solution to this. I'm now considering empty docs to be parsed and tagged, because there's no information for a tagger or parser to add.
Issue body
Result:
Your Environment
The text was updated successfully, but these errors were encountered: