spaCy/spacy/tests/doc
Adriane Boyd 2c545c4c5b
Fix offsets in Span.get_lca_matrix (#8116)
* Fix range in Span.get_lca_matrix

Fix the adjusted token index / lca matrix index ranges for
`_get_lca_matrix` for spans.

* The range for `k` should correspond to the adjusted indices in
`lca_matrix` with the `start` indexed at `0`

* Update test for v3.x
2021-05-17 16:54:23 +02:00
..
__init__.py Revert #4334 2019-09-29 17:32:12 +02:00
test_add_entities.py begin_training -> initialize 2020-09-28 21:35:09 +02:00
test_array.py introduce token.has_head and refer to MISSING_DEP_ (WIP) 2021-01-12 17:17:06 +01:00
test_creation.py Add Lemmatizer and simplify related components (#5848) 2020-08-07 15:27:13 +02:00
test_doc_api.py Fix Docs.from_docs for all empty docs (#8009) 2021-05-05 18:44:14 +02:00
test_graph.py Tidy up and auto-format 2021-01-15 11:57:36 +11:00
test_morphanalysis.py Tidy up and auto-format 2020-10-03 17:20:18 +02:00
test_pickle_doc.py Drop Python 2.7 and 3.5 (#4828) 2019-12-22 01:53:56 +01:00
test_retokenize_merge.py Keep sent starts without parse in retokenization (#7424) 2021-03-29 22:32:00 +11:00
test_retokenize_split.py introduce token.has_head and refer to MISSING_DEP_ (WIP) 2021-01-12 17:17:06 +01:00
test_span.py Fix offsets in Span.get_lca_matrix (#8116) 2021-05-17 16:54:23 +02:00
test_to_json.py Fix morph in Doc.to_json 2020-10-08 14:44:35 +02:00
test_token_api.py Tidy up and auto-format 2021-01-15 11:57:36 +11:00
test_underscore.py Merge branch 'master' into tmp/sync 2020-03-26 13:38:14 +01:00