spaCy/spacy/tests/regression
Matthew Honnibal 72e4d3782a
Resize doc.tensor when merging spans. Closes #1963 (#3106)
The doc.retokenize() context manager wasn't resizing doc.tensor, leading to a mismatch between the number of tokens in the doc and the number of rows in the tensor. We fix this by deleting rows from the tensor. Merged spans are represented by the vector of their last token.

* Add test for resizing doc.tensor when merging

* Add test for resizing doc.tensor when merging. Closes #1963

* Update get_lca_matrix test for develop

* Fix retokenize if tensor unset
2018-12-30 15:17:17 +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 Resize doc.tensor when merging spans. Closes #1963 (#3106) 2018-12-30 15:17:17 +01:00
test_issue1773.py Add test for #1773 2018-12-30 13:16:05 +01:00
test_issue2001-2500.py Tidy up and format remaining files 2018-11-30 17:43:08 +01:00
test_issue2396.py Update get_lca_matrix test for develop 2018-12-30 14:28:07 +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