spaCy/spacy/tests/regression
Á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 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_issue54.py Update model fixtures and reorganise tests 2017-05-29 22:14:31 +02:00
test_issue118.py Fix tests and use the new Matcher API 2017-05-22 13:54:20 +02:00
test_issue242.py raise error when setting overlapping entities as doc.ents (#2880) 2018-10-26 23:29:16 +02:00
test_issue309.py Tidy up and rename regression tests and remove unnecessary imports 2017-01-12 22:00:37 +01:00
test_issue351.py Tidy up and rename regression tests and remove unnecessary imports 2017-01-12 22:00:37 +01:00
test_issue360.py Tidy up and rename regression tests and remove unnecessary imports 2017-01-12 22:00:37 +01:00
test_issue361.py Move test for #361 to regression tests 2017-01-12 16:51:12 +01:00
test_issue401.py Update model fixtures and reorganise tests 2017-05-29 22:14:31 +02:00
test_issue429.py Wrap try/except around model saving 2017-10-05 08:14:24 -05:00
test_issue514.py Update tests 2017-06-04 15:53:17 -05:00
test_issue587.py Fix tests and use the new Matcher API 2017-05-22 13:54:20 +02:00
test_issue588.py Fix tests and use the new Matcher API 2017-05-22 13:54:20 +02:00
test_issue589.py Fix tests 2017-10-11 13:27:18 +02:00
test_issue590.py Fix tests and use the new Matcher API 2017-05-22 13:54:20 +02:00
test_issue595.py Fix regression test 2017-03-25 22:35:07 +01:00
test_issue599.py Tidy up and rename regression tests and remove unnecessary imports 2017-01-12 22:00:37 +01:00
test_issue600.py Tidy up and rename regression tests and remove unnecessary imports 2017-01-12 22:00:37 +01:00
test_issue615.py Update tests 2017-06-05 02:09:27 +02:00
test_issue686.py Update model fixtures and reorganise tests 2017-05-29 22:14:31 +02:00
test_issue693.py Update tests 2017-06-05 02:26:13 +02:00
test_issue704.py Make sure sents are a list 2017-06-05 12:30:13 +02:00
test_issue717.py Update model fixtures and reorganise tests 2017-05-29 22:14:31 +02:00
test_issue719.py Update model fixtures and reorganise tests 2017-05-29 22:14:31 +02:00
test_issue736.py Fix formatting 2017-01-12 22:56:20 +01:00
test_issue740.py Fix formatting 2017-01-16 13:09:52 +01:00
test_issue743.py Add missing unicode declaration 2017-03-13 12:08:19 +01:00
test_issue744.py Exclude "were" and "Were" from tokenizer exceptions and add regression test (resolves #744) 2017-01-16 13:10:38 +01:00
test_issue758.py Update model fixtures and reorganise tests 2017-05-29 22:14:31 +02:00
test_issue759.py Add regression test for #759 2017-01-20 15:11:48 +01:00
test_issue768.py Update tests 2017-06-05 02:09:27 +02:00
test_issue775.py Add more test cases to #775 regression test to cover #847 2017-02-18 14:10:44 +01:00
test_issue781.py Make test less flakey 2017-11-06 17:34:50 +01:00
test_issue792.py Fix handling of trailing whitespace 2017-03-08 15:01:40 +01:00
test_issue801.py Update regression test for #801 to match current expected behaviour 2017-02-02 16:23:05 +01:00
test_issue805.py Use consistent unicode declarations 2017-03-12 13:07:28 +01:00
test_issue834.py Finish stringstore change. Also xfail vectors tests 2017-05-28 15:10:22 +02:00
test_issue850.py Update tests 2017-06-05 02:26:13 +02:00
test_issue852.py Try to fix memory error by moving fr_tokenizer to module scope 2018-07-24 20:09:06 +02:00
test_issue859.py Use consistent unicode declarations 2017-03-12 13:07:28 +01:00
test_issue886.py Update docstring in #886 regression test 2017-03-13 12:00:38 +01:00
test_issue891.py Add / to tokenizer infixes (resolves #891) 2017-04-07 17:30:44 +02:00
test_issue903.py Prevent lemmatization of base nouns 2017-03-25 21:51:12 +01:00
test_issue910.py Fix syntax error and formatting in test (see #1617) 2017-11-20 14:01:25 +01:00
test_issue912.py Block lemmatization of base-form adjectives 2017-03-25 21:29:57 +01:00
test_issue957.py Add unicode declaration on new regression test 2017-04-07 18:09:23 +02:00
test_issue995.py Update tests 2017-06-05 02:09:27 +02:00
test_issue999.py Redesign training to integrate NN components 2017-05-16 16:17:30 +02:00
test_issue1207.py Added failing test for Issue #1207. 2017-11-17 17:04:27 -08:00
test_issue1242.py Check that empty strings are handled. Closes #1242 2017-10-21 00:52:14 +02:00
test_issue1250.py Add test for #1250: Tokenizer cache clobbered special-case attrs 2017-10-24 16:07:18 +02:00
test_issue1253.py Fix re-parsing of previously parsed text 2017-10-20 16:27:36 +02:00
test_issue1257.py Fix comparison of Token from different docs. Closes #1257 2017-08-19 16:39:32 +02:00
test_issue1305.py Fix model-mark on regression test. 2017-10-25 14:44:00 +02:00
test_issue1375.py Fix #1375 -- out-of-bounds on token.nbor() 2017-10-24 12:10:39 +02:00
test_issue1380.py Make test work for Python 2.7 2017-10-04 16:36:50 +02:00
test_issue1387.py Port over changes from #1389 2017-10-14 13:32:55 +02:00
test_issue1434.py Normalize imports in regression test 2017-10-24 14:25:49 +02:00
test_issue1450.py Revert matcher fixes from GregDubbin 2018-02-18 10:59:28 +01:00
test_issue1488.py Assert instead of print 2017-11-03 18:50:57 +01:00
test_issue1494.py Fixed issue of infix capturing prefixes 2017-11-28 17:17:12 +01:00
test_issue1506.py Completely cleanup tokenizer cache 2017-11-15 17:55:48 +03:00
test_issue1518.py Add unicode declaration 2017-11-11 00:13:56 +01:00
test_issue1537.py Fix unicode error in new test 2018-01-15 15:39:00 +01:00
test_issue1539.py Fix vectors.resize() on Py3. Closes #1539 2018-01-14 14:48:51 +01:00
test_issue1547.py Update tests for pytest 4.x (#2965) 2018-11-26 18:14:57 +01:00
test_issue1612.py Simplify test 2017-11-28 20:27:27 +01:00
test_issue1654.py Fix off-by-one error in nlp.add_pipe(after=name) (fixes #1654) 2017-11-28 20:37:55 +01:00
test_issue1660.py Add test for #1660 2018-03-28 18:22:51 +02:00
test_issue1698.py Add regression test for #1698 2017-12-12 10:36:11 +01:00
test_issue1727.py Add comment to new test 2018-01-23 19:11:53 +01:00
test_issue1757.py Fix test 2018-01-15 15:55:15 +01:00
test_issue1758.py add test 2018-01-03 13:00:05 -08:00
test_issue1769.py Mark like_num tests as slow 2018-01-13 00:44:15 +01:00
test_issue1799.py Fix unicode import in test 2018-01-22 23:55:44 +01:00
test_issue1807.py Make set_vector add word to vocab. Fixes #1807 2018-01-14 13:57:57 +01:00
test_issue1834.py add test for the issue 2018-01-28 19:49:56 +01:00
test_issue1868.py Add test for #1868: Vocab.__contains__ with ints 2018-01-23 23:27:05 +01:00
test_issue1883.py Add test for #1883: Unpickling Matcher 2018-01-24 15:42:33 +01:00
test_issue1915.py added tests for issue #1915 2018-01-30 18:30:19 -08:00
test_issue1919.py Test and fix #1919: Error resuming training 2018-02-02 02:32:40 +01:00
test_issue1945.py Update tests for pytest 4.x (#2965) 2018-11-26 18:14:57 +01:00
test_issue1959.py Changed loading EN model 2018-02-15 14:28:38 -08:00
test_issue1967.py Allow entity types with dashes (resolves #1967) 2018-03-28 20:51:26 +02:00
test_issue2179.py Add regression test for issue 2179 2018-07-20 17:15:44 +02:00
test_issue2219.py Test and fix for Issue #2219 (#2272) 2018-05-03 18:40:46 +02:00
test_issue2361.py escape html in displacy.render (#2378) (closes #2361) 2018-05-28 18:36:41 +02:00
test_issue2385.py Update tests for pytest 4.x (#2965) 2018-11-26 18:14:57 +01:00
test_issue2396.py Bugfix/get lca matrix (#3110) 2019-01-06 19:07:50 +01:00
test_issue2626.py Unskip test 2018-10-02 23:47:55 +02:00
test_issue2800.py Fix Python 2 test failure 2018-09-27 15:34:16 +02:00
test_issue2901.py Fix the first nlp call for ja (closes #2901) (#3065) 2018-12-18 14:53:50 +01:00