kamalkraj / bioelectra-base-discriminator-pubmed

huggingface.co
Total runs: 623
24-hour runs: 4
7-day runs: 129
30-day runs: 444
Model's Last Updated: September 07 2021

Introduction of bioelectra-base-discriminator-pubmed

Model Details of bioelectra-base-discriminator-pubmed

BioELECTRA:Pretrained Biomedical text Encoder using Discriminators

Recent advancements in pretraining strategies in NLP have shown a significant improvement in the performance of models on various text mining tasks. In this paper, we introduce BioELECTRA, a biomedical domain-specific language encoder model that adapts ELECTRA (Clark et al., 2020) for the Biomedical domain. BioELECTRA outperforms the previous models and achieves state of the art (SOTA) on all the 13 datasets in BLURB benchmark and on all the 4 Clinical datasets from BLUE Benchmark across 7 NLP tasks. BioELECTRA pretrained on PubMed and PMC full text articles performs very well on Clinical datasets as well. BioELECTRA achieves new SOTA 86.34%(1.39% accuracy improvement) on MedNLI and 64% (2.98% accuracy improvement) on PubMedQA dataset.

For a detailed description and experimental results, please refer to our paper BioELECTRA:Pretrained Biomedical text Encoder using Discriminators .

Cite our paper using below citation

@inproceedings{kanakarajan-etal-2021-bioelectra,
    title = "{B}io{ELECTRA}:Pretrained Biomedical text Encoder using Discriminators",
    author = "Kanakarajan, Kamal raj  and
      Kundumani, Bhuvana  and
      Sankarasubbu, Malaikannan",
    booktitle = "Proceedings of the 20th Workshop on Biomedical Language Processing",
    month = jun,
    year = "2021",
    address = "Online",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2021.bionlp-1.16",
    doi = "10.18653/v1/2021.bionlp-1.16",
    pages = "143--154",
    abstract = "Recent advancements in pretraining strategies in NLP have shown a significant improvement in the performance of models on various text mining tasks. We apply {`}replaced token detection{'} pretraining technique proposed by ELECTRA and pretrain a biomedical language model from scratch using biomedical text and vocabulary. We introduce BioELECTRA, a biomedical domain-specific language encoder model that adapts ELECTRA for the Biomedical domain. WE evaluate our model on the BLURB and BLUE biomedical NLP benchmarks. BioELECTRA outperforms the previous models and achieves state of the art (SOTA) on all the 13 datasets in BLURB benchmark and on all the 4 Clinical datasets from BLUE Benchmark across 7 different NLP tasks. BioELECTRA pretrained on PubMed and PMC full text articles performs very well on Clinical datasets as well. BioELECTRA achieves new SOTA 86.34{\%}(1.39{\%} accuracy improvement) on MedNLI and 64{\%} (2.98{\%} accuracy improvement) on PubMedQA dataset.",
}
How to use the discriminator in transformers
from transformers import ElectraForPreTraining, ElectraTokenizerFast
import torch

discriminator = ElectraForPreTraining.from_pretrained("kamalkraj/bioelectra-base-discriminator-pubmed")
tokenizer = ElectraTokenizerFast.from_pretrained("kamalkraj/bioelectra-base-discriminator-pubmed")

sentence = "The quick brown fox jumps over the lazy dog"
fake_sentence = "The quick brown fox fake over the lazy dog"

fake_tokens = tokenizer.tokenize(fake_sentence)
fake_inputs = tokenizer.encode(fake_sentence, return_tensors="pt")
discriminator_outputs = discriminator(fake_inputs)
predictions = torch.round((torch.sign(discriminator_outputs[0]) + 1) / 2)

[print("%7s" % token, end="") for token in fake_tokens]

[print("%7s" % int(prediction), end="") for prediction in predictions[0].tolist()]

Runs of kamalkraj bioelectra-base-discriminator-pubmed on huggingface.co

623
Total runs
4
24-hour runs
55
3-day runs
129
7-day runs
444
30-day runs

More Information About bioelectra-base-discriminator-pubmed huggingface.co Model

bioelectra-base-discriminator-pubmed huggingface.co

bioelectra-base-discriminator-pubmed huggingface.co is an AI model on huggingface.co that provides bioelectra-base-discriminator-pubmed's model effect (), which can be used instantly with this kamalkraj bioelectra-base-discriminator-pubmed model. huggingface.co supports a free trial of the bioelectra-base-discriminator-pubmed model, and also provides paid use of the bioelectra-base-discriminator-pubmed. Support call bioelectra-base-discriminator-pubmed model through api, including Node.js, Python, http.

bioelectra-base-discriminator-pubmed huggingface.co Url

https://huggingface.co/kamalkraj/bioelectra-base-discriminator-pubmed

kamalkraj bioelectra-base-discriminator-pubmed online free

bioelectra-base-discriminator-pubmed huggingface.co is an online trial and call api platform, which integrates bioelectra-base-discriminator-pubmed's modeling effects, including api services, and provides a free online trial of bioelectra-base-discriminator-pubmed, you can try bioelectra-base-discriminator-pubmed online for free by clicking the link below.

kamalkraj bioelectra-base-discriminator-pubmed online free url in huggingface.co:

https://huggingface.co/kamalkraj/bioelectra-base-discriminator-pubmed

bioelectra-base-discriminator-pubmed install

bioelectra-base-discriminator-pubmed is an open source model from GitHub that offers a free installation service, and any user can find bioelectra-base-discriminator-pubmed on GitHub to install. At the same time, huggingface.co provides the effect of bioelectra-base-discriminator-pubmed install, users can directly use bioelectra-base-discriminator-pubmed installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

bioelectra-base-discriminator-pubmed install url in huggingface.co:

https://huggingface.co/kamalkraj/bioelectra-base-discriminator-pubmed

Url of bioelectra-base-discriminator-pubmed

bioelectra-base-discriminator-pubmed huggingface.co Url

Provider of bioelectra-base-discriminator-pubmed huggingface.co

kamalkraj
ORGANIZATIONS

Other API from kamalkraj

huggingface.co

Total runs: 5
Run Growth: 1
Growth Rate: 20.00%
Updated:September 08 2021
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 01 2022