spaCy/spacy/tests/parser
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_add_label.py Fix beam NER resizing (#6834) 2021-01-27 23:39:14 +11:00
test_arc_eager_oracle.py Tidy up and auto-format 2021-01-05 13:41:53 +11:00
test_ner.py Don't add duplicate patterns all the time in EntityRuler (fix #8216) (#8246) 2021-06-03 09:05:26 +02:00
test_neural_parser.py Update config resolution to use new Thinc 2020-09-27 22:21:31 +02:00
test_nn_beam.py Tidy up and auto-format 2021-01-05 13:41:53 +11:00
test_nonproj.py introduce token.has_head and refer to MISSING_DEP_ (WIP) 2021-01-12 17:17:06 +01:00
test_parse.py cleanup 2021-01-13 14:20:05 +01:00
test_parse_navigate.py Tidy up tests and docs 2020-09-21 20:43:54 +02:00
test_preset_sbd.py Add beam_parser and beam_ner components for v3 (#6369) 2020-12-13 09:08:32 +08:00
test_space_attachment.py Tidy up tests and docs 2020-09-21 20:43:54 +02:00
test_state.py Tidy up and auto-format 2021-01-05 13:41:53 +11:00