spaCy/spacy/tests/doc
Álvaro Abella Bascarán e03e1eee92 Bugfix/get lca matrix (#3110)
This PR adds a test for an untested case of `Span.get_lca_matrix`, and fixes a bug for that scenario, which I introduced in [this PR](https://github.com/explosion/spaCy/pull/3089) (sorry!).

## Description
The previous implementation of get_lca_matrix was failing for the case `doc[j:k].get_lca_matrix()` where `j > 0`. A test has been added for this case and the bug has been fixed.

### Types of change
Bug fix

## Checklist

- [x] I have submitted the spaCy Contributor Agreement.
- [x] I ran the tests, and all new and existing tests passed.
- [x] My changes don't require a change to the documentation, or if they do, I've added all required information.
2019-01-06 19:07:50 +01:00
..
__init__.py Rename "tokens" tests to "doc" 2017-01-11 18:59:01 +01:00
test_add_entities.py raise error when setting overlapping entities as doc.ents (#2880) 2018-10-26 23:29:16 +02:00
test_array.py Support strings for attribute list in doc.to_array 2017-10-20 11:46:57 +05:30
test_creation.py Fix tests 2017-10-11 13:27:18 +02:00
test_doc_api.py Bugfix/get lca matrix (#3110) 2019-01-06 19:07:50 +01:00
test_pickle_doc.py Test pickling hooks 2017-10-17 19:43:52 +02:00
test_span_merge.py Introduces a bulk merge function, in order to solve issue #653 (#2696) 2018-09-10 16:41:42 +02:00
test_span.py Bugfix/get lca matrix (#3110) 2019-01-06 19:07:50 +01:00
test_token_api.py Add sent property to token (#2521) 2018-07-06 15:54:15 +02:00