spaCy/spacy/tokens
Á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__.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 Tidy up and document Doc, Token and Span 2017-10-27 15:41:45 +02:00
_retokenize.pyx Introduces a bulk merge function, in order to solve issue #653 (#2696) 2018-09-10 16:41:42 +02:00
doc.pxd Fix issue 2396 (#3089) 2018-12-29 18:02:26 +01:00
doc.pyx Bugfix/get lca matrix (#3110) 2019-01-06 19:07:50 +01:00
printers.py Use correct, non-deprecated merge syntax (resolves #2226) 2018-04-18 18:28:28 -04:00
span.pxd Add Span.to_array method 2017-08-19 12:20:45 +02:00
span.pyx Fix issue 2396 (#3089) 2018-12-29 18:02:26 +01:00
token.pxd 💫 New system for error messages and warnings (#2163) 2018-04-03 15:50:31 +02:00
token.pyx Fix docstring for is_right_punct(). (#3044) 2018-12-14 10:11:11 +01:00
underscore.py Don't raise error if set_extension has getter and setter (closes #2177) 2018-04-03 18:30:17 +02:00