Downloads · 30 days
2.2K
1% of all-time downloads
nlp-waseda/roberta-base-japanese
roberta-base-japanese is a fill-mask model from nlp-waseda. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as apache-2.0.
This is a Japanese RoBERTa base model pretrained on Japanese Wikipedia and the Japanese portion of CC-100.
Downloads · 30 days
2.2K
1% of all-time downloads
All-time downloads
211K
Public
Repo size
2.2 GB
Likes
32
Public
Click a slice to open those files.
.bin443 MB · 100%
From the Hugging Face model README
This is a Japanese RoBERTa base model pretrained on Japanese Wikipedia and the Japanese portion of CC-100.
As of 2026-04-20, the license of this model has been changed from CC BY-SA 4.0 to Apache License 2.0, as Creative Commons licenses are generally not well-suited for machine learning models.
You can use this model for masked language modeling as follows:
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("nlp-waseda/roberta-base-japanese")
model = AutoModelForMaskedLM.from_pretrained("nlp-waseda/roberta-base-japanese")
sentence = '早稲田 大学 で 自然 言語 処理 を [MASK] する 。' # input should be segmented into words by Juman++ in advance
encoding = tokenizer(sentence, return_tensors='pt')
...
You can fine-tune this model on downstream tasks.
The input text should be segmented into words by Juman++ in advance. Juman++ 2.0.0-rc3 was used for pretraining. Each word is tokenized into tokens by sentencepiece.
BertJapaneseTokenizer now supports automatic JumanppTokenizer and SentencepieceTokenizer. You can use this model without any data preprocessing.
The vocabulary consists of 32000 tokens including words (JumanDIC) and subwords induced by the unigram language model of sentencepiece.
This model was trained on Japanese Wikipedia (as of 20210920) and the Japanese portion of CC-100. It took a week using eight NVIDIA A100 GPUs.
The following hyperparameters were used during pretraining:
See the Baseline Scores of JGLUE.