From fce0c4461ce16d05cbb3816f14c3a90d4f8bdc01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Perceval=20Wajsb=C3=BCrt?= Date: Tue, 21 May 2024 23:20:48 +0200 Subject: [PATCH] chore: bump version to 0.12.0 --- README.md | 4 ++-- changelog.md | 10 +++++++++- docs/index.md | 4 ++-- edsnlp/__init__.py | 2 +- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d2c7f9a4a..86482d5c3 100644 --- a/README.md +++ b/README.md @@ -34,13 +34,13 @@ Check out our interactive [demo](https://aphp.github.io/edsnlp/demo/) ! You can install EDS-NLP via `pip`. We recommend pinning the library version in your projects, or use a strict package manager like [Poetry](https://python-poetry.org/). ```shell -pip install edsnlp==0.11.2 +pip install edsnlp==0.12.0 ``` or if you want to use the trainable components (using pytorch) ```shell -pip install "edsnlp[ml]==0.11.2" +pip install "edsnlp[ml]==0.12.0" ``` ### A first pipeline diff --git a/changelog.md b/changelog.md index 0e077ffea..eafe321b9 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,14 @@ ### Added +### Changed + +### Fixed + +## v0.12.0 + +### Added + - The `eds.transformer` component now accepts `prompts` (passed to its `preprocess` method, see breaking change below) to add before each window of text to embed. - `LazyCollection.map` / `map_batches` now support generator functions as arguments. - Window stride can now be disabled (i.e., stride = window) during training in the `eds.transformer` component by `training_stride = False` @@ -55,7 +63,7 @@ ``` - Trainable embedding components now all use `foldedtensor` to return embeddings, instead of returning a tensor of floats and a mask tensor. - :boom: TorchComponent `__call__` no longer applies the end to end method, and instead calls the `forward` method directly, like all torch modules. -- The trainable `eds.span_qualifier` component has been renamed to `eds.span_classifier` to reflect its general gpurpose (it doesn't only predict qualifiers, but any attribute of a span using its context or not). +- The trainable `eds.span_qualifier` component has been renamed to `eds.span_classifier` to reflect its general purpose (it doesn't only predict qualifiers, but any attribute of a span using its context or not). - `omop` converter now takes the `note_datetime` field into account by default when building a document - `span._.date.to_datetime()` and `span._.date.to_duration()` now automatically take the `note_datetime` into account - `nlp.vocab` is no longer serialized when saving a model, as it may contain sensitive information and can be recomputed during inference anyway diff --git a/docs/index.md b/docs/index.md index ec3d6bf86..c6516420a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -15,13 +15,13 @@ Check out our interactive [demo](https://aphp.github.io/edsnlp/demo/) ! You can install EDS-NLP via `pip`. We recommend pinning the library version in your projects, or use a strict package manager like [Poetry](https://python-poetry.org/). ```{: data-md-color-scheme="slate" } -pip install edsnlp==0.11.2 +pip install edsnlp==0.12.0 ``` or if you want to use the trainable components (using pytorch) ```{: data-md-color-scheme="slate" } -pip install "edsnlp[ml]==0.11.2" +pip install "edsnlp[ml]==0.12.0" ``` ### A first pipeline diff --git a/edsnlp/__init__.py b/edsnlp/__init__.py index 4064e9947..bf23669b3 100644 --- a/edsnlp/__init__.py +++ b/edsnlp/__init__.py @@ -15,7 +15,7 @@ import edsnlp.pipes from . import reducers -__version__ = "0.11.2" +__version__ = "0.12.0" BASE_DIR = Path(__file__).parent