Skip to content

v0.9.0

Compare
Choose a tag to compare
@percevalw percevalw released this 15 Sep 16:31
· 375 commits to master since this release

Changelog

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 name 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.

Pull Requests

New Contributors

Full Changelog: v0.8.1...v0.9.0