spaCy/spacy/tests/regression
Paul O'Leary McCann d959603d51
Don't add duplicate patterns all the time in EntityRuler (fix #8216) (#8246)
* Don't add duplicate patterns (fix #8216)

* Refactor EntityRuler init

This simplifies the EntityRuler init code. This is helpful as prep for
allowing the EntityRuler to reset itself.

* Make EntityRuler.clear reset matchers

Includes a new test for this.

* Tidy PhraseMatcher instantiation

Since the attr can be None safely now, the guard if is no longer
required here.

Also renamed the `_validate` attr. Maybe it's not needed?

* Fix NER test

* Add test to make sure patterns aren't increasing

* Move test to regression tests
2021-06-03 09:05:26 +02:00
..
__init__.py Revert #4334 2019-09-29 17:32:12 +02:00
test_issue1-1000.py begin_training -> initialize 2020-09-28 21:35:09 +02:00
test_issue1001-1500.py Tidy up and auto-format 2020-08-09 22:36:23 +02:00
test_issue1501-2000.py begin_training -> initialize 2020-09-28 21:35:09 +02:00
test_issue2001-2500.py begin_training -> initialize 2020-09-28 21:35:09 +02:00
test_issue2501-3000.py begin_training -> initialize 2020-09-28 21:35:09 +02:00
test_issue3001-3500.py raise NotImplementedError when noun_chunks iterator is not implemented (#6711) 2021-01-17 19:56:05 +08:00
test_issue3501-4000.py Tidy up and auto-format 2020-09-29 21:39:28 +02:00
test_issue4001-4500.py Fix beam NER resizing (#6834) 2021-01-27 23:39:14 +11:00
test_issue4501-5000.py Set up GPU CI testing (#7293) 2021-04-22 14:58:29 +02:00
test_issue5001-5500.py Set up GPU CI testing (#7293) 2021-04-22 14:58:29 +02:00
test_issue5501-6000.py Set up GPU CI testing (#7293) 2021-04-22 14:58:29 +02:00
test_issue6001-6500.py Tidy up and auto-format 2021-01-30 12:52:33 +11:00
test_issue6501-7000.py Tidy up and auto-format 2021-02-13 12:55:56 +11:00
test_issue7019.py Fix issue #7019: Handle None scores in evaluate printer (#7026) 2021-02-11 16:45:23 +11:00
test_issue7029.py span.ent only returns first sentence (#7084) 2021-02-19 23:02:38 +11:00
test_issue7055.py Preserve sourced components in fill-config (fixes #7055) (#7058) 2021-02-14 14:02:14 +11:00
test_issue7056.py span.ent only returns first sentence (#7084) 2021-02-19 23:02:38 +11:00
test_issue7062.py only evaluate named entities for NEL if there is a corresponding gold span (#7074) 2021-02-22 11:06:50 +11:00
test_issue7065.py Bugfix/nel crossing sentence (#7630) 2021-04-12 18:08:01 +10:00
test_issue8216.py Don't add duplicate patterns all the time in EntityRuler (fix #8216) (#8246) 2021-06-03 09:05:26 +02:00