Arabic BERT
1.0.0
阿拉伯语的伯特语言模型
如果您在工作中使用任何这些模型,请引用本文:
@inproceedings{safaya-etal-2020-kuisail,
title = "{KUISAIL} at {S}em{E}val-2020 Task 12: {BERT}-{CNN} for Offensive Speech Identification in Social Media",
author = "Safaya, Ali and
Abdullatif, Moutasem and
Yuret, Deniz",
booktitle = "Proceedings of the Fourteenth Workshop on Semantic Evaluation",
month = dec,
year = "2020",
address = "Barcelona (online)",
publisher = "International Committee for Computational Linguistics",
url = "https://www.aclweb.org/anthology/2020.semeval-1.271",
pages = "2054--2059",
}
这些模型是在约82亿个单词上估计的:
以及其他总计约95GB文本的阿拉伯资源。
培训数据注释:
| 伯特·米尼(Bert-Mini) | 伯特中等 | 伯特基 | Bert-large | |
|---|---|---|---|---|
| 隐藏层 | 4 | 8 | 12 | 24 |
| 注意力头 | 4 | 8 | 12 | 16 |
| 隐藏尺寸 | 256 | 512 | 768 | 1024 |
| 参数 | 11m | 42m | 110m | 340m |
| 数据集 | 细节 | ML-bert | hulmona | 阿拉伯语 - 伯特基地 |
|---|---|---|---|---|
| Arsenlev | 5堂,黎凡特方言 | 0.510 | 0.511 | 0.552 |
| ASTD | 4堂,MSA和埃及方言 | 0.670 | 0.677 | 0.714 |
注意:其他下游NLP任务的更多结果将很快添加。如果您使用这些型号,我将感谢您的反馈。
您可以通过安装torch或tensorflow和拥抱面库transformers使用这些型号。您可以通过这样的初始化直接使用它:
from transformers import AutoTokenizer , AutoModel
# Mini: asafaya/bert-mini-arabic
# Medium: asafaya/bert-medium-arabic
# Base: asafaya/bert-base-arabic
# Large: asafaya/bert-large-arabic
tokenizer = AutoTokenizer . from_pretrained ( "asafaya/bert-base-arabic" )
model = AutoModel . from_pretrained ( "asafaya/bert-base-arabic" )感谢Google提供了免费的TPU进行培训过程,并为在其服务器上托管这些模型的拥抱面吗?