-
Notifications
You must be signed in to change notification settings - Fork 35
Improve contextual matcher #289
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
Conversation
db55239 to
53bcc0e
Compare
53bcc0e to
b756307
Compare
Coverage Report
Files without new missing coverage
275 files skipped due to complete coverage. Coverage success: total of 98.15% is above 98.13% 🎉 |
cb7d1ec to
465ba39
Compare
changelog.md
Outdated
| - Added a new `eds.ner_overlap_scorer` to evaluate matches between two lists of entities, counting true when the dice overlap is above a given threshold | ||
| - `edsnlp.load` now accepts EDS-NLP models from the huggingface hub 🤗 ! | ||
| - New `python -m edsnlp.package` command to package a model for the huggingface hub or pypi-like registries | ||
| - Expose the defaults patterns of `eds.negation`, `eds.hypothesis`, `eds.family`, `eds.history` and `eds.reported_speech` under a `eds.negation.default_patterns` attribute |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why everything under negation? eds.negation.default_patterns
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not everything under negation, eds.hypothesis patterns will be under eds.hypothesis.default_patterns
ae75dc5 to
430ef22
Compare
2038fb9 to
232ca91
Compare
fe81659 to
1ffa7c6
Compare
465ba39 to
9ffdfb4
Compare
fbde11b to
007e31f
Compare
7370b21 to
49038ae
Compare
12a94c1 to
eb07c0a
Compare
6ebfbf2 to
ae30982
Compare
Docs preview URL |
2969a61 to
eec8418
Compare
f3327b3 to
a793837
Compare
|



Added
eds.negation,eds.hypothesis,eds.family,eds.historyandeds.reported_speechunder aeds.negation.default_patternsattributecontext_getterSpanGetter argument to theeds.matcherclass to only retrieve entities inside the spans returned by the getterfilter_exprparameter to scorers to filter the documents to scorerequiredfield toeds.contextual_matcherassign patterns to only match if the required field has been found, and anincludeparameter (similar toexclude) to search for required patterns without assigning them to the entityeds.contextual_matchercomponent to allow for more complex patterns in the selection of the window around the trigger spans.Changed
Checklist