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

Token-based matching: Exclude token in pattern from matches #6492

Closed
marijnfer opened this issue Dec 3, 2020 · 2 comments
Closed

Token-based matching: Exclude token in pattern from matches #6492

marijnfer opened this issue Dec 3, 2020 · 2 comments
Labels
feat / matcher Feature: Token, phrase and dependency matcher

Comments

@marijnfer
Copy link

I have the following rule:
[{"LOWER": {"IN": ["born"]}, "OP": "!"}, {"LOWER": "on"}, {"ENT_TYPE": "Date"}]

The goal of this rule is to detect on date without born before it, however I'm not interested in the first token.

Is it possible to ignore this token, or to provide a blacklist of tokenpatterns to the ruler, to prevent a match on born on date and_ add [ {"LOWER": "on"}, {"ENT_TYPE": "Date"}] to the regular ruleset. Any solution is welcome.

@svlandeg svlandeg added the feat / matcher Feature: Token, phrase and dependency matcher label Dec 3, 2020
@adrianeboyd
Copy link
Contributor

This looks like a duplicate of #6420, let's merge it with that issue.

@github-actions
Copy link
Contributor

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feat / matcher Feature: Token, phrase and dependency matcher
Projects
None yet
Development

No branches or pull requests

3 participants