diff --git a/flair/datasets/biomedical.py b/flair/datasets/biomedical.py index b0289c098..bde405063 100644 --- a/flair/datasets/biomedical.py +++ b/flair/datasets/biomedical.py @@ -613,7 +613,7 @@ def to_internal(self, data_dir: Path) -> InternalBioNerDataset: return merge_datasets([train_data, test_data]) -@deprecated(version="0.13", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") +@deprecated(version="0.13.0", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") class JNLPBA(ColumnCorpus): """Original corpus of the JNLPBA shared task. @@ -943,7 +943,7 @@ def to_internal(self, data_dir: Path) -> InternalBioNerDataset: return data -@deprecated(version="0.13", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") +@deprecated(version="0.13.0", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") class MIRNA(ColumnCorpus): """Original miRNA corpus. @@ -1545,7 +1545,7 @@ def to_internal(self, data_dir: Path) -> InternalBioNerDataset: return filter_and_map_entities(dataset, {"protein": GENE_TAG}) -@deprecated(version="0.13", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") +@deprecated(version="0.13.0", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") class CHEMDNER(ColumnCorpus): """Original corpus of the CHEMDNER shared task. @@ -1643,7 +1643,7 @@ def to_internal(self, data_dir: Path) -> InternalBioNerDataset: return all_data -@deprecated(version="0.13", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") +@deprecated(version="0.13.0", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") class IEPA(ColumnCorpus): """IEPA corpus as provided by http://corpora.informatik.hu-berlin.de/. @@ -1752,7 +1752,7 @@ def to_internal(self, data_dir: Path) -> InternalBioNerDataset: return merge_datasets([train_data, test_data]) -@deprecated(version="0.13", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") +@deprecated(version="0.13.0", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") class LINNEAUS(ColumnCorpus): """Original LINNEAUS corpus containing species annotations. @@ -1851,7 +1851,7 @@ def to_internal(self, data_dir: Path) -> InternalBioNerDataset: return LINNEAUS.download_and_parse_dataset(data_dir) -@deprecated(version="0.13", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") +@deprecated(version="0.13.0", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") class CDR(ColumnCorpus): """CDR corpus as provided by https://github.com/JHnlp/BioCreative-V-CDR-Corpus. @@ -1959,7 +1959,7 @@ def to_internal(self, data_dir: Path) -> InternalBioNerDataset: return all_data -@deprecated(version="0.13", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") +@deprecated(version="0.13.0", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") class VARIOME(ColumnCorpus): """Variome corpus as provided by http://corpora.informatik.hu-berlin.de/corpora/brat2bioc/hvp_bioc.xml.zip. @@ -2109,7 +2109,7 @@ def to_internal(self, data_dir: Path) -> InternalBioNerDataset: return all_data -@deprecated(version="0.13", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") +@deprecated(version="0.13.0", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") class NCBI_DISEASE(ColumnCorpus): """Original NCBI disease corpus containing disease annotations. @@ -2356,7 +2356,7 @@ def parse_input_file(input_file: Path): return InternalBioNerDataset(documents=documents, entities_per_document=entities_per_document) -@deprecated(version="0.13", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") +@deprecated(version="0.13.0", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") class SCAI_CHEMICALS(ScaiCorpus): """Original SCAI chemicals corpus containing chemical annotations. @@ -2384,7 +2384,7 @@ def perform_corpus_download(data_dir: Path) -> Path: return corpus_file -@deprecated(version="0.13", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") +@deprecated(version="0.13.0", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") class SCAI_DISEASE(ScaiCorpus): """Original SCAI disease corpus containing disease annotations. @@ -2460,7 +2460,7 @@ def to_internal(self, data_dir: Path) -> InternalBioNerDataset: return filter_and_map_entities(corpus, entity_mapping) -@deprecated(version="0.13", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") +@deprecated(version="0.13.0", reason="Please use data set implementation from BigBio instead (see BIGBIO_NER_CORPUS)") class OSIRIS(ColumnCorpus): """Original OSIRIS corpus containing variation and gene annotations.