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",
}
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 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:
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.