spaCy/spacy/tokens
adrianeboyd 9be90dbca3
Improve token head verification (#5079)
* Improve token head verification

Improve the verification for valid token heads when heads are set:

* in `Token.head`: heads come from the same document
* in `Doc.from_array()`: head indices are within the bounds of the
document

* Improve error message
2020-03-03 21:44:51 +01:00
..
__init__.pxd * Break up tokens.pyx into tokens/doc.pyx, tokens/token.pyx, tokens/spans.pyx 2015-07-13 20:20:58 +02:00
__init__.py DocPallet -> DocBin 2019-09-18 15:15:37 +02:00
_retokenize.pyx Fix realloc in retokenizer.split() (#4606) 2019-11-11 16:26:46 +01:00
_serialize.py Include Doc.cats in serialization of Doc and DocBin (#4774) 2019-12-06 14:07:39 +01:00
doc.pxd Iterate over lr_edges until sents are correct (#4702) 2019-11-25 13:06:36 +01:00
doc.pyx Improve token head verification (#5079) 2020-03-03 21:44:51 +01:00
morphanalysis.pxd Add header for morphanalysis 2019-03-07 17:24:57 +01:00
morphanalysis.pyx Add more docstrings for MorphAnalysis 2019-09-12 16:48:30 +02:00
span.pxd annotate kb_id through ents in doc 2019-03-22 11:36:44 +01:00
span.pyx Sync Span __eq__ and __hash__ (#5005) 2020-02-16 17:20:36 +01:00
token.pxd serialize ENT_ID (#4852) 2020-01-06 14:57:34 +01:00
token.pyx Improve token head verification (#5079) 2020-03-03 21:44:51 +01:00
underscore.py load Underscore state when multiprocessing 2020-02-12 11:50:42 +01:00