spaCy/spacy/tests/regression
Joshua Smith 2eb925bd05 Added an argument to EntityRuler constructor to pass attrs to… (#3919)
* Perserve flags in EntityRuler

The EntityRuler (explosion/spaCy#3526) does not preserve
overwrite flags (or `ent_id_sep`) when serialized.  This
commit adds support for serialization/deserialization preserving
overwrite and ent_id_sep flags.

* add signed contributor agreement

* flake8 cleanup

mostly blank line issues.

* mark test from the issue as needing a model

The test from the issue needs some language model for serialization
but the test wasn't originally marked correctly.

* Adds `phrase_matcher_attr` to allow args to PhraseMatcher

This is an added arg to pass to the `PhraseMatcher`. For example,
this allows creation of a case insensitive phrase matcher when the
`EntityRuler` is created.  References explosion/spaCy#3822

* remove unneeded model loading

The model didn't need to be loaded, and I replaced it with
a change that doesn't require it (using existings fixtures)

* updated docstring for new argument

* updated docs to reflect new argument to the EntityRuler constructor

* change tempdir handling to be compatible with python 2.7

* return conflicted code to entityruler

Some stuff got cut out because of merge conflicts, this
returns that code for the phrase_matcher_attr.

* fixed typo in the code added back after conflicts

* flake8 compliance

When I deconflicted the branch there were some flake8 issues
introduced. This resolves the spacing problems.

* test changes:  attempts to fix flaky test in python3.5

These tests seem to be alittle flaky in 3.5 so I changed the check to avoid
the comparisons that seem to be fail sometimes.
2019-07-09 20:09:17 +02:00
..
__init__.py Add __init__.py file for regression tests 2016-11-01 13:45:06 +01:00
test_issue1-1000.py Clean up of char classes, few tokenizer fixes and faster default French tokenizer (#3293) 2019-02-20 22:10:13 +01:00
test_issue1001-1500.py Clean up of char classes, few tokenizer fixes and faster default French tokenizer (#3293) 2019-02-20 22:10:13 +01:00
test_issue1501-2000.py Merge regression tests 2019-02-24 20:31:38 +01:00
test_issue2001-2500.py Tidy up 2019-03-11 13:34:14 +01:00
test_issue2501-3000.py Merge regression tests 2019-02-24 21:03:39 +01:00
test_issue3002.py Clean up of char classes, few tokenizer fixes and faster default French tokenizer (#3293) 2019-02-20 22:10:13 +01:00
test_issue3009.py Tidy up and fix small bugs and typos 2019-02-08 14:14:49 +01:00
test_issue3012.py Tidy up and fix small bugs and typos 2019-02-08 14:14:49 +01:00
test_issue3199.py Only run noun chunks iterator in Span if available (closes #3199) 2019-02-08 18:33:16 +01:00
test_issue3209.py Un-x-fail passing test 2019-02-24 20:24:15 +01:00
test_issue3248.py Tidy up and auto-format 2019-02-13 15:29:08 +01:00
test_issue3277.py 💫 Add en/em dash to prefixes and suffixes (#3281) 2019-02-15 10:29:59 +01:00
test_issue3288.py Tidy up tests 2019-02-24 14:11:23 +01:00
test_issue3289.py Tidy up tests 2019-02-24 14:11:23 +01:00
test_issue3328.py Auto-format 2019-02-27 11:56:45 +01:00
test_issue3331.py Add xfailing test for #3331 2019-02-25 22:33:30 +01:00
test_issue3345.py Un-xfail passing tests and tidy up 2019-03-10 18:42:16 +01:00
test_issue3356.py Auto-format 2019-04-01 12:11:27 +02:00
test_issue3410.py Add actual deprecation warning for n_threads (resolves #3410) 2019-03-15 16:38:44 +01:00
test_issue3447.py Auto-format 2019-04-01 12:11:27 +02:00
test_issue3449.py Tidy up and auto-format 2019-04-09 11:40:19 +02:00
test_issue3468.py Auto-format 2019-04-01 12:11:27 +02:00
test_issue3521.py addressed all comments by Ines 2019-04-03 13:50:33 +02:00
test_issue3526.py Added an argument to EntityRuler constructor to pass attrs to… (#3919) 2019-07-09 20:09:17 +02:00
test_issue3531.py Don't make "settings" or "title" required in displaCy data (closes #3531) 2019-04-03 10:13:16 +02:00
test_issue3549.py Ensure match pattern error isn't raised on empty errors (closes #3549) 2019-04-09 12:50:43 +02:00
test_issue3555.py Add xfailing test for #3555 2019-04-09 11:07:14 +02:00
test_issue3803.py Tidy up [ci skip] 2019-06-12 13:38:23 +02:00
test_issue3839.py Add regression test for #3839 2019-06-12 13:38:30 +02:00
test_issue3882.py Exclude user_data when copying doc in displaCy (closes #3882) 2019-06-26 14:37:05 +02:00