spaCy/spacy/tokens
Álvaro Abella Bascarán 6fe276f85d Fix issue 2396 (#3089)
* Test on #2396: bug in Doc.get_lca_matrix()

* reimplementation of Doc.get_lca_matrix(), (closes #2396)

* reimplement Span.get_lca_matrix(), and call it from Doc.get_lca_matrix()

* tests Span.get_lca_matrix() as well as Doc.get_lca_matrix()

* implement _get_lca_matrix as a helper function in doc.pyx; call it from Doc.get_lca_matrix and Span.get_lca_matrix

* use memory view instead of np.ndarray in _get_lca_matrix (faster)

* fix bug when calling Span.get_lca_matrix; return lca matrix as np.array instead of memoryview

* cleaner conditional, add comment
2018-12-29 18:02:26 +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 Fix issue 2396 (#3089) 2018-12-29 18:02:26 +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