Downloads · 30 days
21
20% of all-time downloads
hwp0725/roberta-korean-hanja-stdict
roberta-korean-hanja-stdict is a fill-mask model from hwp0725. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as cc-by-sa-4.0.
이 모델은 MLM 학습 전 베이스 모델입니다. MLM 파인튜닝이 완료된 버전은 hwp0725/roberta-korean-hanja-stdict-mlm을 사용하세요.
Downloads · 30 days
21
20% of all-time downloads
All-time downloads
105
Public
Parameters
345M
1.4 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors1.4 GB · 100%
From the Hugging Face model README
이 모델은 MLM 학습 전 베이스 모델입니다. MLM 파인튜닝이 완료된 버전은 hwp0725/roberta-korean-hanja-stdict-mlm을 사용하세요.
KoichiYasuoka/roberta-large-korean-hanja 모델의 vocabulary를 표준국어대사전 한자로 확장한 모델입니다.
| 항목 | 값 |
|---|---|
| 베이스 모델 | KoichiYasuoka/roberta-large-korean-hanja |
| 원본 vocab size | 39,255 |
| 확장 vocab size | 40,235 |
| 추가된 한자 | 980자 |
| 한자 출처 | 표준국어대사전 |
| 모델 | 설명 |
|---|---|
| hwp0725/roberta-korean-hanja-stdict | vocab 확장 베이스 모델 (현재 모델) |
| hwp0725/roberta-korean-hanja-stdict-mlm | MLM 파인튜닝 완료 모델 |
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("hwp0725/roberta-korean-hanja-stdict")
model = AutoModelForMaskedLM.from_pretrained("hwp0725/roberta-korean-hanja-stdict")
# Fill-mask 예시
from transformers import pipeline
fill_mask = pipeline("fill-mask", model=model, tokenizer=tokenizer)
result = fill_mask("孔子曰:學而時習之,不亦[MASK]乎")
print(result)
표준국어대사전에 등재된 한자어 표제어에서 추출한 한자 중, 기존 모델에 없던 980자를 추가했습니다.
주요 추가 한자 예시:
원본 모델과 동일하게 CC BY-SA 4.0 라이선스를 따릅니다.
이 모델을 사용하시면 원본 모델도 함께 인용해 주세요:
@misc{yasuoka2024roberta,
author = {Koichi Yasuoka},
title = {roberta-large-korean-hanja},
year = {2024},
publisher = {Hugging Face},
url = {https://huggingface.co/KoichiYasuoka/roberta-large-korean-hanja}
}