csebuetnlp / banglishbert_generator

huggingface.co
Total runs: 59
24-hour runs: 0
7-day runs: 1
30-day runs: 35
Model's Last Updated: August 21 2022
fill-mask

Introduction of banglishbert_generator

Model Details of banglishbert_generator

BanglishBERT

This repository contains the pretrained generator checkpoint of the model BanglishBERT . This is an ELECTRA generator model pretrained with the Masked Language Modeling (MLM) objective on large amounts of Bengali and English corpora.

Note : This model was pretrained using a specific normalization pipeline available here .

Using this model for MLM in transformers (tested on 4.11.0.dev0)
from normalizer import normalize # pip install git+https://github.com/csebuetnlp/normalizer
from transformers import pipeline

fill_mask = pipeline(
    "fill-mask",
    model="csebuetnlp/banglishbert_generator",
    tokenizer="csebuetnlp/banglishbert_generator"
)

print(
    fill_mask(
        normalize(f"Paris is the {fill_mask.tokenizer.mask_token} of France.")
    )
)

If you use this model, please cite the following paper:

@inproceedings{bhattacharjee-etal-2022-banglabert,
    title     = {BanglaBERT: Lagnuage Model Pretraining and Benchmarks for Low-Resource Language Understanding Evaluation in Bangla},
    author = "Bhattacharjee, Abhik  and
      Hasan, Tahmid  and
      Mubasshir, Kazi  and
      Islam, Md. Saiful  and
      Uddin, Wasi Ahmad  and
      Iqbal, Anindya  and
      Rahman, M. Sohel  and
      Shahriyar, Rifat",
      booktitle = "Findings of the North American Chapter of the Association for Computational Linguistics: NAACL 2022",
      month = july,
    year      = {2022},
    url       = {https://arxiv.org/abs/2101.00204},
    eprinttype = {arXiv},
    eprint    = {2101.00204}
}

If you use the normalization module, please cite the following paper:

@inproceedings{hasan-etal-2020-low,
    title = "Not Low-Resource Anymore: Aligner Ensembling, Batch Filtering, and New Datasets for {B}engali-{E}nglish Machine Translation",
    author = "Hasan, Tahmid  and
      Bhattacharjee, Abhik  and
      Samin, Kazi  and
      Hasan, Masum  and
      Basak, Madhusudan  and
      Rahman, M. Sohel  and
      Shahriyar, Rifat",
    booktitle = "Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP)",
    month = nov,
    year = "2020",
    address = "Online",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/2020.emnlp-main.207",
    doi = "10.18653/v1/2020.emnlp-main.207",
    pages = "2612--2623",
    abstract = "Despite being the seventh most widely spoken language in the world, Bengali has received much less attention in machine translation literature due to being low in resources. Most publicly available parallel corpora for Bengali are not large enough; and have rather poor quality, mostly because of incorrect sentence alignments resulting from erroneous sentence segmentation, and also because of a high volume of noise present in them. In this work, we build a customized sentence segmenter for Bengali and propose two novel methods for parallel corpus creation on low-resource setups: aligner ensembling and batch filtering. With the segmenter and the two methods combined, we compile a high-quality Bengali-English parallel corpus comprising of 2.75 million sentence pairs, more than 2 million of which were not available before. Training on neural models, we achieve an improvement of more than 9 BLEU score over previous approaches to Bengali-English machine translation. We also evaluate on a new test set of 1000 pairs made with extensive quality control. We release the segmenter, parallel corpus, and the evaluation set, thus elevating Bengali from its low-resource status. To the best of our knowledge, this is the first ever large scale study on Bengali-English machine translation. We believe our study will pave the way for future research on Bengali-English machine translation as well as other low-resource languages. Our data and code are available at https://github.com/csebuetnlp/banglanmt.",
}

Runs of csebuetnlp banglishbert_generator on huggingface.co

59
Total runs
0
24-hour runs
2
3-day runs
1
7-day runs
35
30-day runs

More Information About banglishbert_generator huggingface.co Model

banglishbert_generator huggingface.co

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

banglishbert_generator huggingface.co Url

https://huggingface.co/csebuetnlp/banglishbert_generator

csebuetnlp banglishbert_generator online free

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

csebuetnlp banglishbert_generator online free url in huggingface.co:

https://huggingface.co/csebuetnlp/banglishbert_generator

banglishbert_generator install

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

banglishbert_generator install url in huggingface.co:

https://huggingface.co/csebuetnlp/banglishbert_generator

Url of banglishbert_generator

banglishbert_generator huggingface.co Url

Provider of banglishbert_generator huggingface.co

csebuetnlp
ORGANIZATIONS

Other API from csebuetnlp

huggingface.co

Total runs: 45.0K
Run Growth: -11.9K
Growth Rate: -26.21%
Updated:December 24 2022
huggingface.co

Total runs: 6.2K
Run Growth: -6.0K
Growth Rate: -96.22%
Updated:August 21 2022