Skip to content

Commit

Permalink
fix semantic versioning of deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
helpmefindaname committed Oct 26, 2023
1 parent 20ababc commit f443490
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions flair/datasets/biomedical.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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/.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit f443490

Please sign in to comment.