模型:
TrelBERT是一个基于BERT的语言模型,使用掩码语言建模目标在波兰推特数据上进行训练。它基于 HerBERT 模型,因此在相同的许可下发布 - CC BY 4.0。
我们从 herbert-base-cased 检查点开始训练我们的模型,并使用从Twitter收集的数据进行MLM训练。
我们用于MLM微调的数据约为4500万条波兰推特。我们使用学习率5e-5和批量大小2184使用AdamW优化器训练了1个epoch的模型。
对于每条推特,移除了出现在文本开头的用户处理,因为它们不是消息内容的一部分,只代表了用户回复给谁。其余的用户处理被替换为“@anonymized_account”。链接被替换为特殊的@URL标记。
我们使用HerBERT分词器,并添加了两个特殊的标记用于预处理,如上所述(@anonymized_account,@URL)。最大序列长度设置为128,基于对Twitter数据分布的分析。
CC BY 4.0
我们将TrelBERT微调到 KLEJ benchmark 个任务,并取得了以下结果:
| Task name | Score |
|---|---|
| NKJP-NER | 94.4 |
| CDSC-E | 93.9 |
| CDSC-R | 93.6 |
| CBD | 76.1 |
| PolEmo2.0-IN | 89.3 |
| PolEmo2.0-OUT | 78.1 |
| DYK | 67.4 |
| PSC | 95.7 |
| AR | 86.1 |
| Average | 86.1 |
对于KLEJ任务的微调,我们使用了 Polish RoBERTa 个脚本,并对其进行了修改以使用transformers库。对于CBD任务,我们将最大序列长度设置为128,并实施与MLM阶段相同的预处理过程。
我们的模型在网络欺凌检测(CBD)任务中获得了第一名。总体上,它在第7名,仅次于HerBERT模型。
请引用以下论文:
@inproceedings{szmyd-etal-2023-trelbert,
title = "{T}rel{BERT}: A pre-trained encoder for {P}olish {T}witter",
author = "Szmyd, Wojciech and
Kotyla, Alicja and
Zobni{\'o}w, Micha{\l} and
Falkiewicz, Piotr and
Bartczuk, Jakub and
Zygad{\l}o, Artur",
booktitle = "Proceedings of the 9th Workshop on Slavic Natural Language Processing 2023 (SlavicNLP 2023)",
month = may,
year = "2023",
address = "Dubrovnik, Croatia",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2023.bsnlp-1.3",
pages = "17--24",
abstract = "Pre-trained Transformer-based models have become immensely popular amongst NLP practitioners. We present TrelBERT {--} the first Polish language model suited for application in the social media domain. TrelBERT is based on an existing general-domain model and adapted to the language of social media by pre-training it further on a large collection of Twitter data. We demonstrate its usefulness by evaluating it in the downstream task of cyberbullying detection, in which it achieves state-of-the-art results, outperforming larger monolingual models trained on general-domain corpora, as well as multilingual in-domain models, by a large margin. We make the model publicly available. We also release a new dataset for the problem of harmful speech detection.",
}
Jakub Bartczuk,Krzysztof Dziedzic,Piotr Falkiewicz,Alicja Kotyla,Wojciech Szmyd,Michał Zobniów,Artur Zygadło
如需更多信息,请通过电子邮件联系我们:artur.zygadlo@deepsense.ai
.hf-sanitized.hf-sanitized-eYI-L40uFO59zM5qnILA2 tr:last-child {border-top-width: 4px;}