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

NER: Conditions #1

Open
TheCurle opened this issue Oct 21, 2021 · 0 comments
Open

NER: Conditions #1

TheCurle opened this issue Oct 21, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@TheCurle
Copy link
Member

The Named Entity Recognition system works like thus:

Rules are registered via NER#addRule - these contain ExtractionRules, which eventually contain Extractors.
Extractors are functional interfaces, which define a single function - take in the full String, return a list of recognized entities.

Extractors like Between, After and Before work with these systems called Conditions.
Currently, because there are only three extractors that use them, Conditions are hardcoded to contain two Strings - from and to.

These hardcoded strings are shared between all current relevant Extractors, albeit the current implementation means that these Conditions must be queried from global state - until a full Query system is devised.

However, the issue at hand is about extending this system. Conditions can be used for a lot of things related to entity extraction - the Neural Engine supports things like categorization, so you could have a condition that searches for the most likely match for a generic topic, or a category of object, like Condition(category: "fruit").

This would be much better for design and construction than the current hardcoded / regex Extractions.

@TheCurle TheCurle added the enhancement New feature or request label Oct 21, 2021
@TheCurle TheCurle added this to the NER milestone Oct 21, 2021
@TheCurle TheCurle self-assigned this Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant