spaCy/spacy/tests/doc
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__.py
test_add_entities.py
test_array.py Improve token head verification (#5079) 2020-03-03 21:44:51 +01:00
test_creation.py
test_doc_api.py Bugfix/get doc (#5049) 2020-03-02 11:49:28 +01:00
test_morphanalysis.py
test_pickle_doc.py
test_retokenize_merge.py
test_retokenize_split.py Fix realloc in retokenizer.split() (#4606) 2019-11-11 16:26:46 +01:00
test_span.py Sync Span __eq__ and __hash__ (#5005) 2020-02-16 17:20:36 +01:00
test_to_json.py
test_token_api.py Improve token head verification (#5079) 2020-03-03 21:44:51 +01:00
test_underscore.py use clean_underscore fixture 2020-02-23 15:49:20 +01:00