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

chore: bump version to 0.9.0 #215

Merged
merged 2 commits into from
Sep 15, 2023
Merged

chore: bump version to 0.9.0 #215

merged 2 commits into from
Sep 15, 2023

Conversation

percevalw
Copy link
Member

Description

Added

  • New to_duration method to convert an absolute date into a date relative to the note_datetime (or None)

Changes

  • Input and output of components are now specified by span_getter and span_setter arguments.
  • 💥 Score / disorders / behaviors entities now have a fixed label (passed as an argument), instead of being dynamically set from the component name. The following scores may have a different label than the current one in your pipelines:
    • eds.emergency.gemsaemergency_gemsa
    • eds.emergency.ccmuemergency_ccmu
    • eds.emergency.priorityemergency_priority
    • eds.charlsoncharlson
    • eds.elston_elliselston_ellis
    • eds.SOFAsofa
    • eds.adicapadicap
    • eds.measuremetssize, weight, ... instead of eds.size, eds.weight, ...
  • eds.dates now separate dates from durations. Each entity has its own label:
    • spans["dates"] → entities labelled as date with a span._.date parsed object
    • spans["durations"] → entities labelled as duration with a span._.duration parsed object
  • the "relative" / "absolute" / "duration" mode of the time entity is now stored in
    the mode attribute of the span._.date/duration
  • the "from" / "until" period bound, if any, is now stored in the span._.date.bound attribute
  • to_datetime now only return absolute dates, converts relative dates into absolute if doc._.note_datetime is given, and None otherwise

Fixed

  • export_to_brat issue with spans of entities on multiple lines.

Checklist

  • If this PR is a bug fix, the bug is documented in the test suite.
  • Changes were documented in the changelog (pending section).
  • If necessary, changes were made to the documentation (eg new pipeline).

@codecov
Copy link

codecov bot commented Sep 15, 2023

Codecov Report

Patch coverage is 100.00% of modified lines.

Files Changed Coverage
edsnlp/__init__.py 100.00%

📢 Thoughts on this report? Let us know!.

@percevalw percevalw merged commit 9157b96 into master Sep 15, 2023
10 checks passed
@percevalw percevalw deleted the v0.9.0 branch September 15, 2023 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant