Views
No views yet
1from transformers import AutoTokenizer, AutoModel
2tokenizer = AutoTokenizer.from_pretrained("line-corporation/line-distilbert-base-japanese", trust_remote_code=True)
3model = AutoModel.from_pretrained("line-corporation/line-distilbert-base-japanese")
4
5sentence = "LINE株式会社で[MASK]の研究・開発をしている。"
6print(model(**tokenizer(sentence, return_tensors="pt")))1fugashi
2sentencepiece
3unidic-lite| model name | #Params | Marc_ja | JNLI | JSTS | JSQuAD | JCommonSenseQA |
|---|---|---|---|---|---|---|
| acc | acc | Pearson/Spearman | EM/F1 | acc | ||
| LINE-DistilBERT | 68M | 95.6 | 88.9 | 89.2/85.1 | 87.3/93.3 | 76.1 |
| Laboro-DistilBERT | 68M | 94.7 | 82.0 | 87.4/82.7 | 70.2/87.3 | 73.2 |
| BandaiNamco-DistilBERT | 68M | 94.6 | 81.6 | 86.8/82.1 | 80.0/88.0 | 66.5 |
@article{LINE DistilBERT Japanese,
title = {LINE DistilBERT Japanese},
author = {"Koga, Kobayashi and Li, Shengzhe and Nakamachi, Akifumi and Sato, Toshinori"},
year = {2023},
howpublished = {\url{http://github.com/line/LINE-DistilBERT-Japanese}}
}