Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix on_match callback and exclude empty match lists from results #6312

Merged

Conversation

adrianeboyd
Copy link
Contributor

Description

For the DependencyMatcher:

  • Fix on_match callback so that it is called once per matched pattern
  • Fix results so that patterns with empty match lists are not returned

Fixes #6300.

Types of change

Bug fix

Checklist

  • I have submitted the spaCy Contributor Agreement.
  • I ran the tests, and all new and existing tests passed.
  • My changes don't require a change to the documentation, or if they do, I've added all required information.

For the `DependencyMatcher`:

* Fix on_match callback so that it is called once per matched pattern
* Fix results so that patterns with empty match lists are not returned
@adrianeboyd adrianeboyd added bug Bugs and behaviour differing from documentation feat / matcher Feature: Token, phrase and dependency matcher labels Oct 27, 2020
@adrianeboyd adrianeboyd changed the title Fix on_match callback and remove empty patterns Fix on_match callback and exclude empty match lists from results Oct 27, 2020
@adrianeboyd adrianeboyd merged commit 31de700 into explosion:master Nov 5, 2020
adrianeboyd added a commit that referenced this pull request Nov 12, 2020
For the `DependencyMatcher`:

* Fix on_match callback so that it is called once per matched pattern
* Fix results so that patterns with empty match lists are not returned
honnibal pushed a commit that referenced this pull request Nov 14, 2020
* Fix on_match callback and remove empty patterns (#6312)

For the `DependencyMatcher`:

* Fix on_match callback so that it is called once per matched pattern
* Fix results so that patterns with empty match lists are not returned

* Add --prefer-binary for python 3.5

* Add version pins for pyrsistent

* Use backwards-compatible super()

* Try to fix tests on Travis (2.7)

* Fix naming conflict and formatting

* Update pkuseg version in Chinese tokenizer warnings

* Some changes for Armenian (#5616)

* Fixing numericals

* We need a Armenian question sign to make the sentence a question

* Update lex_attrs.py (#5608)

* Fix compat

* Update Armenian from v2.3.x

Co-authored-by: Ines Montani <ines@ines.io>
Co-authored-by: Karen Hambardzumyan <mahnerak@gmail.com>
Co-authored-by: Marat M. Yavrumyan <myavrum@ysu.am>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs and behaviour differing from documentation feat / matcher Feature: Token, phrase and dependency matcher
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bugs on DependencyMatcher
1 participant