Downloads · 30 days
0
retrieva-jp/japanese-spoken-language-bert
japanese-spoken-language-bert is a machine learning model from retrieva-jp. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Downloads · 30 days
0
Access
Public
Updated Oct 31, 2023
Repo size
1.3 GB
Likes
1
Public
Click a slice to open those files.
.bin1.3 GB · 100%
From the Hugging Face model README
日本語READMEはこちら
<!-- Provide a quick summary of what the model is/does. [Optional] -->These BERT models are pre-trained on written Japanese (Wikipedia) and fine-tuned on Spoken Japanese. We used CSJ and the Japanese diet record. CSJ (Corpus of Spontaneous Japanese) is provided by NINJAL (https://www.ninjal.ac.jp/). We only provide model parameters. You have to download other config files to use these models.
We provide three models down below:
1-6 layer-wise (Folder Name: models/1-6_layer-wise)
Fine-Tuned only 1st-6th layers in Encoder on CSJ.
TAPT512 60k (Folder Name: models/tapt512_60k)
Fine-Tuned on CSJ.
DAPT128-TAPT512 (Folder Name: models/dapt128-tap512)
Fine-Tuned on the diet record and CSJ.
These BERT models are pre-trained on written Japanese (Wikipedia) and fine-tuned on Spoken Japanese. We used CSJ and the Japanese diet record. CSJ (Corpus of Spontaneous Japanese) is provided by NINJAL (https://www.ninjal.ac.jp/). We only provide model parameters. You have to download other config files to use these models.
We provide three models down below:
1-6 layer-wise (Folder Name: models/1-6_layer-wise)
Fine-Tuned only 1st-6th layers in Encoder on CSJ.
TAPT512 60k (Folder Name: models/tapt512_60k)
Fine-Tuned on CSJ.
DAPT128-TAPT512 (Folder Name: models/dapt128-tap512)
Fine-Tuned on the diet record and CSJ.
Model Information
We continuously train the pre-trained Japanese BERT model (cl-tohoku/bert-base-japanese-whole-word-masking; written BERT).
In detail, see Japanese blog or Japanese paper.
We use CSJ for the evaluation.
We evaluate the following tasks on CSJ:
| Dependency Parsing | Sentence Boundary | Important Sentence Extraction | |
|---|---|---|---|
| written BERT | 39.4 | 61.6 | 36.8 |
| 1-6 layer wise | 44.6 | 64.8 | 35.4 |
| TAPT 512 60K | - | - | 40.2 |
| DAPT128-TAPT512 | 42.9 | 64.0 | 39.7 |
BibTeX:
@inproceedings{csjbert2021,
title = {CSJを用いた日本語話し言葉BERTの作成},
author = {勝又智 and 坂田大直},
booktitle = {言語処理学会第27回年次大会},
year = {2021},
}
https://tech.retrieva.jp/entry/2021/04/01/114943 (In Japanese)
Satoru Katsumata
Use the code below to get started with the model.
<details> <summary> Click to expand </summary>python download_wikipedia_bert.py
This script downloads config files and a vocab file provided by Inui Laboratory of Tohoku University from Hugging Face Model Hub. https://github.com/cl-tohoku/bert-japanese
python sample_mlm.py
</details>