diff options
| author | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-06-19 10:46:58 +0200 |
|---|---|---|
| committer | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-06-27 21:57:19 +0200 |
| commit | aefe41d23fef642eac4b6674733397f6e6e7e9fa (patch) | |
| tree | f626de876d4bd2db79594753e2ec93f4e7f48e6d | |
| parent | 51030e581ffaa5a96676a2fc33db13f46fdd9bf1 (diff) | |
nlp: python-edsnlp: Update to 0.22.0.
* guix-science/packages/nlp.scm (python-edsnlp)
[source]: Update to 0.22.0.
[arguments]<#:test-flags>: Use markers to run fast tests only. Ignore flaky
tests. Ignore tests requiring additional dependencies in order to decrease
closure size.
[native-inputs]: Add python-{configobj,joblib,optuna,ruamel.yaml}.
| -rw-r--r-- | guix-science/packages/nlp.scm | 82 |
1 files changed, 21 insertions, 61 deletions
diff --git a/guix-science/packages/nlp.scm b/guix-science/packages/nlp.scm index fe044a9..a11ded7 100644 --- a/guix-science/packages/nlp.scm +++ b/guix-science/packages/nlp.scm | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | #:use-module (gnu packages python-science) | 12 | #:use-module (gnu packages python-science) |
| 13 | #:use-module (gnu packages python-web) | 13 | #:use-module (gnu packages python-web) |
| 14 | #:use-module (gnu packages python-xyz) | 14 | #:use-module (gnu packages python-xyz) |
| 15 | #:use-module (gnu packages serialization) | ||
| 15 | #:use-module (gnu packages time) | 16 | #:use-module (gnu packages time) |
| 16 | #:use-module (guix-science packages machine-learning) | 17 | #:use-module (guix-science packages machine-learning) |
| 17 | #:use-module (guix-science packages python-xyz) | 18 | #:use-module (guix-science packages python-xyz) |
| @@ -94,7 +95,7 @@ to generate a synthetic dataset.") | |||
| 94 | (define-public python-edsnlp | 95 | (define-public python-edsnlp |
| 95 | (package | 96 | (package |
| 96 | (name "python-edsnlp") | 97 | (name "python-edsnlp") |
| 97 | (version "0.20.0") | 98 | (version "0.22.0") |
| 98 | (source | 99 | (source |
| 99 | (origin | 100 | (origin |
| 100 | (method git-fetch) | 101 | (method git-fetch) |
| @@ -103,74 +104,27 @@ to generate a synthetic dataset.") | |||
| 103 | (commit (string-append "v" version)))) | 104 | (commit (string-append "v" version)))) |
| 104 | (file-name (git-file-name name version)) | 105 | (file-name (git-file-name name version)) |
| 105 | (sha256 | 106 | (sha256 |
| 106 | (base32 "0bv1iah83rf9mxwza534gjc6ib7b3dqr5ir91s7n58cb9509gw0w")))) | 107 | (base32 "0ykbf3h9x5jbmfhmaf3b1f9viblsxb2yk8hm9g17i20wm8an6dc4")))) |
| 107 | (build-system pyproject-build-system) | 108 | (build-system pyproject-build-system) |
| 108 | (arguments | 109 | (arguments |
| 109 | (list | 110 | (list |
| 110 | #:test-flags | 111 | #:test-flags |
| 111 | #~(list | 112 | #~(list |
| 113 | ;; Run fast tests, see upstream CI setup. | ||
| 114 | "-m" | ||
| 115 | "not (docs or ml or processing)" | ||
| 116 | ;; Ignore flaky tests, may timeout. | ||
| 117 | "-k" | ||
| 118 | "not test_read_shuffle_loop" | ||
| 119 | ;; Requires python-datasets. | ||
| 120 | "--ignore=tests/data/test_huggingface_dataset.py" | ||
| 112 | ;; Requires python-polars. | 121 | ;; Requires python-polars. |
| 113 | "--ignore=tests/data/test_polars.py" | 122 | "--ignore=tests/data/test_polars.py" |
| 114 | "--deselect=tests/test_entrypoints.py::test_entrypoints" | 123 | "--deselect=tests/test_entrypoints.py::test_entrypoints" |
| 115 | ;; Requires python-build. | ||
| 116 | "--ignore=tests/utils/test_package.py" | ||
| 117 | ;; Requires python-pyspark. | 124 | ;; Requires python-pyspark. |
| 118 | "--deselect=tests/processing/test_processing.py::test_pipelines" | 125 | "--deselect=tests/data/test_pandas.py::test_read_write" |
| 119 | "--deselect=tests/processing/test_processing.py::test_spark_missing_types[eds]" | 126 | ;; Requires build module. |
| 120 | "--deselect=tests/processing/test_processing.py::test_arbitrary_callback" | 127 | "--ignore=tests/utils/test_package.py") |
| 121 | "--deselect=tests/processing/test_processing.py::test_pipelines" | ||
| 122 | "--deselect=tests/processing/test_processing.py::test_spark_missing_types[fr]" | ||
| 123 | "--deselect=tests/processing/test_processing.py::test_arbitrary_callback" | ||
| 124 | "--deselect=tests/processing/test_backends.py::test_end_to_end" | ||
| 125 | "--deselect=tests/processing/test_backends.py::test_generator[spark]" | ||
| 126 | "--deselect=tests/utils/test_spark_dtypes.py::test_infer_schema" | ||
| 127 | "--deselect=tests/data/test_pandas.py::test_read_write[eds]" | ||
| 128 | "--deselect=tests/data/test_spark.py::test_read_write[eds]" | ||
| 129 | ;; Requires python-scikit-learn. | ||
| 130 | "--deselect=tests/pipelines/core/test_endlines.py::test_endlines[eds]" | ||
| 131 | "--deselect=tests/pipelines/core/test_endlines.py::test_normalizer_endlines[eds]" | ||
| 132 | "--deselect=tests/data/test_pandas.py::test_read_write[fr]" | ||
| 133 | "--deselect=tests/data/test_spark.py::test_read_write[fr]" | ||
| 134 | "--deselect=tests/pipelines/core/test_endlines.py::test_endlines[fr]" | ||
| 135 | "--deselect=tests/pipelines/core/test_endlines.py::test_normalizer_endlines[fr]" | ||
| 136 | ;; Yields catalogue.RegistryError: Can't find 'sentencizer' in registry edsnlp. | ||
| 137 | "--deselect=tests/test_pipeline.py::test_spacy_component" | ||
| 138 | ;; Requires external data. | ||
| 139 | "--deselect=tests/pipelines/trainable/test_extractive_qa.py::test_ner" | ||
| 140 | "--deselect=tests/pipelines/trainable/test_ner.py::test_ner" | ||
| 141 | "--deselect=tests/pipelines/trainable/test_span_linker.py::test_span_linker" | ||
| 142 | "--deselect=tests/pipelines/trainable/test_span_qualifier.py::test_span_qualifier" | ||
| 143 | "--deselect=tests/pipelines/trainable/test_transformer.py::test_span_getter" | ||
| 144 | "--deselect=tests/test_pipeline.py::test_validate_config" | ||
| 145 | "--deselect=tests/test_pipeline.py::test_load_config" | ||
| 146 | "--deselect=tests/test_pipeline.py::test_config_validation_error" | ||
| 147 | "--deselect=tests/test_pipeline.py::test_huggingface" | ||
| 148 | "--deselect=tests/test_pipeline.py::test_missing_huggingface" | ||
| 149 | "--deselect=tests/training/test_train.py::test_ner_qualif_train_diff_bert" | ||
| 150 | "--deselect=tests/training/test_train.py::test_ner_qualif_train_same_bert" | ||
| 151 | "--deselect=tests/training/test_train.py::test_qualif_train" | ||
| 152 | "--deselect=tests/training/test_train.py::test_dep_parser_train" | ||
| 153 | "--deselect=tests/data/test_stream.py::test_repr" | ||
| 154 | "--deselect=tests/data/test_stream.py::test_shuffle_frozen_ml_pipeline" | ||
| 155 | "--deselect=tests/data/test_stream.py::test_parallel_preprocess_stop" | ||
| 156 | "--deselect=tests/processing/test_backends.py::test_multiprocessing_backend" | ||
| 157 | "--deselect=tests/processing/test_backends.py::test_multiprocessing_gpu_stub_backend[simple-True]" | ||
| 158 | "--deselect=tests/processing/test_backends.py::test_multiprocessing_gpu_stub_backend[multiprocessing-True]" | ||
| 159 | "--deselect=tests/processing/test_backends.py::test_multiprocessing_gpu_stub_backend[multiprocessing-False]" | ||
| 160 | "--deselect=tests/processing/test_backends.py::test_multiprocessing_gpu_stub_backend[spark-True]" | ||
| 161 | "--deselect=tests/processing/test_backends.py::test_multiprocessing_gpu_stub_multi_cpu_deterministic_backend" | ||
| 162 | "--deselect=tests/processing/test_backends.py::test_multiprocessing_gpu_stub_wait[True]" | ||
| 163 | "--deselect=tests/processing/test_backends.py::test_multiprocessing_gpu_stub_wait[False]" | ||
| 164 | "--deselect=tests/processing/test_backends.py::test_multiprocessing_rb_error" | ||
| 165 | "--deselect=tests/processing/test_backends.py::test_multiprocessing_ml_error" | ||
| 166 | "--deselect=tests/test_pipeline.py::test_sequence" | ||
| 167 | "--deselect=tests/test_pipeline.py::test_disk_serialization" | ||
| 168 | "--deselect=tests/test_pipeline.py::test_torch_module" | ||
| 169 | "--deselect=tests/test_pipeline.py::test_cache" | ||
| 170 | "--deselect=tests/test_pipeline.py::test_select_pipes" | ||
| 171 | "--deselect=tests/test_pipeline.py::test_torch_save" | ||
| 172 | "--deselect=tests/test_pipeline.py::test_parameters" | ||
| 173 | "--deselect=tests/test_pipeline.py::test_repr") | ||
| 174 | #:phases | 128 | #:phases |
| 175 | #~(modify-phases %standard-phases | 129 | #~(modify-phases %standard-phases |
| 176 | (add-after 'unpack 'relax-requirements | 130 | (add-after 'unpack 'relax-requirements |
| @@ -208,7 +162,13 @@ to generate a synthetic dataset.") | |||
| 208 | python-typing-extensions | 162 | python-typing-extensions |
| 209 | python-umls-downloader | 163 | python-umls-downloader |
| 210 | python-xxhash)) | 164 | python-xxhash)) |
| 211 | (native-inputs (list python-cython python-pytest python-setuptools)) | 165 | (native-inputs (list python-configobj |
| 166 | python-cython | ||
| 167 | python-joblib | ||
| 168 | python-optuna | ||
| 169 | python-pytest | ||
| 170 | python-ruamel.yaml | ||
| 171 | python-setuptools)) | ||
| 212 | (home-page "https://aphp.github.io/edsnlp/") | 172 | (home-page "https://aphp.github.io/edsnlp/") |
| 213 | (synopsis "NLP framework tailored for French clinical notes") | 173 | (synopsis "NLP framework tailored for French clinical notes") |
| 214 | (description | 174 | (description |
