Skip to content

Commit

Permalink
Merge pull request #3358 from flairNLP/fix_semantic_versioning_and_re…
Browse files Browse the repository at this point in the history
…direct_to_new_doc_page

Fix semantic versioning and redirect to new doc page
  • Loading branch information
alanakbik authored Oct 26, 2023
2 parents b034b8c + f443490 commit b523f8d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion assets/redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>Redirecting to https://flairnlp.github.io/</title>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; URL=https://flairnlp.github.io/">
<meta http-equiv="refresh" content="0; URL=https://flairnlp.github.io/[VERSION]/index.html">
<link rel="canonical" href="https://flairnlp.github.io/">
</head>
</html>
2 changes: 1 addition & 1 deletion flair/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
device = torch.device("cpu")

# global variable: version
__version__ = "0.13"
__version__ = "0.13.0"
"""The current version of the flair library installed."""

# global variable: arrow symbol
Expand Down
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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name="flair",
version="0.13",
version="0.13.0",
description="A very simple framework for state-of-the-art NLP",
long_description=Path("README.md").read_text(encoding="utf-8"),
long_description_content_type="text/markdown",
Expand Down

0 comments on commit b523f8d

Please sign in to comment.