-
Notifications
You must be signed in to change notification settings - Fork 30
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
Improve contextual matcher #289
base: master
Are you sure you want to change the base?
Conversation
db55239
to
53bcc0e
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #289 +/- ##
==========================================
+ Coverage 96.94% 96.97% +0.03%
==========================================
Files 262 262
Lines 9022 9048 +26
==========================================
+ Hits 8746 8774 +28
+ Misses 276 274 -2 ☔ View full report in Codecov by Sentry. |
…ds.contextual_matcher
53bcc0e
to
b756307
Compare
Coverage Report
Files without new missing coverage
258 files skipped due to complete coverage. Coverage failure: total of 97.39% is less than 97.58% ❌ |
78cc968
to
cb7d1ec
Compare
cb7d1ec
to
465ba39
Compare
Quality Gate passedIssues Measures |
@@ -9,6 +9,12 @@ | |||
- Window stride can now be disabled (i.e., stride = window) during training in the `eds.transformer` component by `training_stride = False` | |||
- 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
ae75dc5
to
430ef22
Compare
2038fb9
to
232ca91
Compare
fe81659
to
1ffa7c6
Compare
Added
eds.negation
,eds.hypothesis
,eds.family
,eds.history
andeds.reported_speech
under aeds.negation.default_patterns
attributecontext_getter
SpanGetter argument to theeds.matcher
class to only retrieve entities inside the spans returned by the getterfilter_expr
parameter to scorers to filter the documents to scorerequired
field toeds.contextual_matcher
assign patterns to only match if the required field has been found, and aninclude
parameter (similar toexclude
) to search for required patterns without assigning them to the entityChecklist