spaCy/spacy/tests/regression
Álvaro Abella Bascarán 9bc4cc1352 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:05:52 +01:00
..
__init__.py Add __init__.py file for regression tests 2016-11-01 13:45:06 +01:00
_test_issue1622.py Don't run weird failing test for now 2018-11-30 16:13:40 +01:00
_test_issue2800.py Tidy up and format remaining files 2018-11-30 17:43:08 +01:00
test_issue1-1000.py Tidy up and format remaining files 2018-11-30 17:43:08 +01:00
test_issue1001-1500.py 💫 Tidy up and auto-format tests (#2967) 2018-11-27 01:09:36 +01:00
test_issue1501-2000.py Tidy up and format remaining files 2018-11-30 17:43:08 +01:00
test_issue2001-2500.py Tidy up and format remaining files 2018-11-30 17:43:08 +01:00
test_issue2396.py Fix issue 2396 (#3089) 2018-12-29 18:05:52 +01:00
test_issue2564.py 💫 Tidy up and auto-format tests (#2967) 2018-11-27 01:09:36 +01:00
test_issue2569.py 💫 Tidy up and auto-format tests (#2967) 2018-11-27 01:09:36 +01:00
test_issue2626.py Tidy up and format remaining files 2018-11-30 17:43:08 +01:00
test_issue2671.py Tidy up and format remaining files 2018-11-30 17:43:08 +01:00
test_issue2754.py Make NORM a token attribute (#3029) 2018-12-08 10:49:10 +01:00
test_issue2772.py 💫 Tidy up and auto-format tests (#2967) 2018-11-27 01:09:36 +01:00
test_issue2782.py 💫 Tidy up and auto-format tests (#2967) 2018-11-27 01:09:36 +01:00
test_issue2871.py Add test for issue #2871 -- vectors for reserved words 2018-12-10 16:09:10 +01:00
test_issue2901.py Fix the first nlp call for ja (closes #2901) (#3065) 2018-12-18 15:01:06 +01:00
test_issue3009.py Fix behaviour of Matcher's ? quantifier for v2.1 (#3105) 2018-12-29 16:18:09 +01:00
test_issue3012.py issue #3012: add test (#3021) 2018-12-18 15:02:49 +01:00