|
--- |
|
language: ko |
|
--- |
|
|
|
# Pretrained BART in Korean |
|
|
|
This is pretrained BART model with multiple Korean Datasets. |
|
|
|
I used multiple datasets for generalizing the model for both colloquial and written texts. |
|
|
|
The training is supported by [TPU Research Cloud](https://sites.research.google/trc/) program. |
|
|
|
The script which is used to pre-train model is [here](https://github.com/cosmoquester/transformers-bart-pretrain). |
|
|
|
When you use the reference API, you must wrap the sentence with `[BOS]` and `[EOS]` like below example. |
|
|
|
``` |
|
[BOS] ์๋
ํ์ธ์? ๋ฐ๊ฐ์์~~ [EOS] |
|
``` |
|
|
|
You can also test mask filling performance using `[MASK]` token like this. |
|
``` |
|
[BOS] [MASK] ๋จน์์ด? [EOS] |
|
``` |
|
|
|
## Benchmark |
|
|
|
<style> |
|
table { |
|
border-collapse: collapse; |
|
border-style: hidden; |
|
width: 100%; |
|
} |
|
|
|
td, th { |
|
border: 1px solid #4d5562; |
|
padding: 8px; |
|
} |
|
</style> |
|
|
|
<table> |
|
<tr> |
|
<th>Dataset</th> |
|
|
|
<td>KLUE NLI dev</th> |
|
<td>NSMC test</td> |
|
<td>QuestionPair test</td> |
|
<td colspan="2">KLUE TC dev</td> |
|
<td colspan="3">KLUE STS dev</td> |
|
<td colspan="3">KorSTS dev</td> |
|
<td colspan="2">HateSpeech dev</td> |
|
</tr> |
|
<tr> |
|
<th>Metric</th> |
|
|
|
<!-- KLUE NLI --> |
|
<td>Acc</th> |
|
|
|
<!-- NSMC --> |
|
<td>Acc</td> |
|
|
|
<!-- QuestionPair --> |
|
<td>Acc</td> |
|
|
|
<!-- KLUE TC --> |
|
<td>Acc</td> |
|
<td>F1</td> |
|
|
|
<!-- KLUE STS --> |
|
<td>F1</td> |
|
<td>Pearson</td> |
|
<td>Spearman</td> |
|
|
|
<!-- KorSTS --> |
|
<td>F1</td> |
|
<td>Pearson</td> |
|
<td>Spearman</td> |
|
|
|
<!-- HateSpeech --> |
|
<td>Bias Acc</td> |
|
<td>Hate Acc</td> |
|
</tr> |
|
|
|
<tr> |
|
<th>Score</th> |
|
|
|
<!-- KLUE NLI --> |
|
<td>0.5253</th> |
|
|
|
<!-- NSMC --> |
|
<td>0.8425</td> |
|
|
|
<!-- QuestionPair --> |
|
<td>0.8945</td> |
|
|
|
<!-- KLUE TC --> |
|
<td>0.8047</td> |
|
<td>0.7988</td> |
|
|
|
<!-- KLUE STS --> |
|
<td>0.7411</td> |
|
<td>0.7471</td> |
|
<td>0.7399</td> |
|
|
|
<!-- KorSTS --> |
|
<td>0.7725</td> |
|
<td>0.6503</td> |
|
<td>0.6191</td> |
|
|
|
<!-- HateSpeech --> |
|
<td>0.7537</td> |
|
<td>0.5605</td> |
|
</tr> |
|
</table> |
|
|
|
- The performance was measured using [the notebooks here](https://github.com/cosmoquester/transformers-bart-finetune) with colab. |
|
|
|
## Used Datasets |
|
|
|
### [๋ชจ๋์ ๋ง๋ญ์น](https://corpus.korean.go.kr/) |
|
- ์ผ์ ๋ํ ๋ง๋ญ์น 2020 |
|
- ๊ตฌ์ด ๋ง๋ญ์น |
|
- ๋ฌธ์ด ๋ง๋ญ์น |
|
- ์ ๋ฌธ ๋ง๋ญ์น |
|
|
|
### AIhub |
|
- [๊ฐ๋ฐฉ๋ฐ์ดํฐ ์ ๋ฌธ๋ถ์ผ๋ง๋ญ์น](https://aihub.or.kr/aidata/30717) |
|
- [๊ฐ๋ฐฉ๋ฐ์ดํฐ ํ๊ตญ์ด๋ํ์์ฝ](https://aihub.or.kr/aidata/30714) |
|
- [๊ฐ๋ฐฉ๋ฐ์ดํฐ ๊ฐ์ฑ ๋ํ ๋ง๋ญ์น](https://aihub.or.kr/aidata/7978) |
|
- [๊ฐ๋ฐฉ๋ฐ์ดํฐ ํ๊ตญ์ด ์์ฑ](https://aihub.or.kr/aidata/105) |
|
- [๊ฐ๋ฐฉ๋ฐ์ดํฐ ํ๊ตญ์ด SNS](https://aihub.or.kr/aidata/30718) |
|
|
|
### [์ธ์ข
๋ง๋ญ์น](https://ithub.korean.go.kr/) |
|
|