allegro / herbert-base-cased

huggingface.co
Total runs: 225.1K
24-hour runs: 0
7-day runs: -18.3K
30-day runs: 5.2K
Model's Last Updated: June 09 2022
feature-extraction

Introduction of herbert-base-cased

Model Details of herbert-base-cased

HerBERT

HerBERT is a BERT-based Language Model trained on Polish corpora using Masked Language Modelling (MLM) and Sentence Structural Objective (SSO) with dynamic masking of whole words. For more details, please refer to: HerBERT: Efficiently Pretrained Transformer-based Language Model for Polish .

Model training and experiments were conducted with transformers in version 2.9.

Corpus

HerBERT was trained on six different corpora available for Polish language:

Corpus Tokens Documents
CCNet Middle 3243M 7.9M
CCNet Head 2641M 7.0M
National Corpus of Polish 1357M 3.9M
Open Subtitles 1056M 1.1M
Wikipedia 260M 1.4M
Wolne Lektury 41M 5.5k
Tokenizer

The training dataset was tokenized into subwords using a character level byte-pair encoding ( CharBPETokenizer ) with a vocabulary size of 50k tokens. The tokenizer itself was trained with a tokenizers library.

We kindly encourage you to use the Fast version of the tokenizer, namely HerbertTokenizerFast .

Usage

Example code:

from transformers import AutoTokenizer, AutoModel

tokenizer = AutoTokenizer.from_pretrained("allegro/herbert-base-cased")
model = AutoModel.from_pretrained("allegro/herbert-base-cased")

output = model(
    **tokenizer.batch_encode_plus(
        [
            (
                "A potem szedł środkiem drogi w kurzawie, bo zamiatał nogami, ślepy dziad prowadzony przez tłustego kundla na sznurku.",
                "A potem leciał od lasu chłopak z butelką, ale ten ujrzawszy księdza przy drodze okrążył go z dala i biegł na przełaj pól do karczmy."
            )
        ],
    padding='longest',
    add_special_tokens=True,
    return_tensors='pt'
    )
)
License

CC BY 4.0

Citation

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

@inproceedings{mroczkowski-etal-2021-herbert,
    title = "{H}er{BERT}: Efficiently Pretrained Transformer-based Language Model for {P}olish",
    author = "Mroczkowski, Robert  and
      Rybak, Piotr  and
      Wr{\\'o}blewska, Alina  and
      Gawlik, Ireneusz",
    booktitle = "Proceedings of the 8th Workshop on Balto-Slavic Natural Language Processing",
    month = apr,
    year = "2021",
    address = "Kiyv, Ukraine",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/2021.bsnlp-1.1",
    pages = "1--10",
}
Authors

The model was trained by Machine Learning Research Team at Allegro and Linguistic Engineering Group at Institute of Computer Science, Polish Academy of Sciences .

You can contact us at: [email protected]

Runs of allegro herbert-base-cased on huggingface.co

225.1K
Total runs
0
24-hour runs
-11.7K
3-day runs
-18.3K
7-day runs
5.2K
30-day runs

More Information About herbert-base-cased huggingface.co Model

More herbert-base-cased license Visit here:

https://choosealicense.com/licenses/cc-by-4.0

herbert-base-cased huggingface.co

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

herbert-base-cased huggingface.co Url

https://huggingface.co/allegro/herbert-base-cased

allegro herbert-base-cased online free

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

allegro herbert-base-cased online free url in huggingface.co:

https://huggingface.co/allegro/herbert-base-cased

herbert-base-cased install

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

herbert-base-cased install url in huggingface.co:

https://huggingface.co/allegro/herbert-base-cased

Url of herbert-base-cased

herbert-base-cased huggingface.co Url

Provider of herbert-base-cased huggingface.co

allegro
ORGANIZATIONS

Other API from allegro

huggingface.co

Total runs: 2.9K
Run Growth: -401
Growth Rate: -13.89%
Updated:August 04 2022
huggingface.co

Total runs: 1.6K
Run Growth: -1.4K
Growth Rate: -89.73%
Updated:August 04 2022
huggingface.co

Total runs: 178
Run Growth: 32
Growth Rate: 17.98%
Updated:August 04 2022
huggingface.co

Total runs: 171
Run Growth: -109
Growth Rate: -63.74%
Updated:February 11 2025
huggingface.co

Total runs: 142
Run Growth: 113
Growth Rate: 79.58%
Updated:February 11 2025
huggingface.co

Total runs: 42
Run Growth: 14
Growth Rate: 33.33%
Updated:February 11 2025
huggingface.co

Total runs: 41
Run Growth: 5
Growth Rate: 12.20%
Updated:February 11 2025
huggingface.co

Total runs: 29
Run Growth: 25
Growth Rate: 86.21%
Updated:February 11 2025
huggingface.co

Total runs: 20
Run Growth: -39
Growth Rate: -195.00%
Updated:February 11 2025
huggingface.co

Total runs: 16
Run Growth: 1
Growth Rate: 6.25%
Updated:February 11 2025
huggingface.co

Total runs: 13
Run Growth: 7
Growth Rate: 53.85%
Updated:February 11 2025
huggingface.co

Total runs: 4
Run Growth: -8
Growth Rate: -200.00%
Updated:February 11 2025