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 Revert #4334 2019-09-29 17:32:12 +02:00
test_add_entities.py Fix test imports 2019-09-29 17:34:56 +02:00
test_array.py Improve token head verification (#5079) 2020-03-03 21:44:51 +01:00
test_creation.py Refactor lemmatizer and data table integration (#4353) 2019-10-01 21:36:03 +02:00
test_doc_api.py Bugfix/get doc (#5049) 2020-03-02 11:49:28 +01:00
test_morphanalysis.py Revert #4334 2019-09-29 17:32:12 +02:00
test_pickle_doc.py Revert #4334 2019-09-29 17:32:12 +02:00
test_retokenize_merge.py Skip duplicate spans in Doc.retokenize (#4339) 2019-09-30 12:43:48 +02:00
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 Revert #4334 2019-09-29 17:32:12 +02:00
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