Downloads · 30 days
6
14% of all-time downloads
PoeticPaper/mbart-large-50_definition_ko_KR
mbart-large-50_definition_ko_KR is a machine learning model from PoeticPaper. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
The model can generate definition in Korean. Usage:
Downloads · 30 days
6
14% of all-time downloads
All-time downloads
42
Public
Repo size
4.9 GB
Likes
0
Public
Click a slice to open those files.
.bin2.4 GB · 100%
From the Hugging Face model README
The model can generate definition in Korean. Usage:
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer, pipeline
checkpoint = 'PoeticPaper/mbart-large-50_definition_ko_KR'
tokenizer = AutoTokenizer.from_pretrained(checkpoint, src_lang="ko_KR", tgt_lang="ko_KR")
model = AutoModelForSeq2SeqLM.from_pretrained(checkpoint)
generator = pipeline(
task='text2text-generation',
model=model,
tokenizer=tokenizer,
forced_bos_token_id=tokenizer.lang_code_to_id["ko_KR"],
)
input = "define: 힘쓰다 context: 우리 연구실은 대기오염을 줄일 수 있는 자동차 개발에 힘쓰고 있다. 꾸준한 홍보에 힘쓴 결과 많은 사람들이 우리 회사의 상품을 알게 되었다. definition:"
output = generator(input) # output will be: "어떤 일을 이루려고 노력하다."