spaCy/spacy/tests/matcher
Matthew Honnibal 0d1ca15b13 💫 Fix bugs in matcher extensions. Closes #1971 (#3301)
* Fix matching on extension attrs and predicates

* Fix detection of match_id when using extension attributes. The match
ID is stored as the last entry in the pattern. We were checking for this
with nr_attr == 0, which didn't account for extension attributes.

* Fix handling of predicates. The wrong count was being passed through,
so even patterns that didn't have a predicate were being checked.

* Fix regex pattern

* Fix matcher set value test
2019-02-20 21:30:39 +01:00
..
__init__.py 💫 Refactor test suite (#2568) 2018-07-24 23:38:44 +02:00
test_matcher_api.py 💫 Fix bugs in matcher extensions. Closes #1971 (#3301) 2019-02-20 21:30:39 +01:00
test_matcher_logic.py 💫 Tidy up and auto-format tests (#2967) 2018-11-27 01:09:36 +01:00
test_pattern_validation.py 💫 Add token match pattern validation via JSON schemas (#3244) 2019-02-13 01:47:26 +11:00
test_phrase_matcher.py Show warning if phrase pattern Doc was overprocessed (#3255) 2019-02-13 01:45:31 +11:00