Downloads · 30 days
10
2% of all-time downloads
lIlBrother/ko-barTNumText
ko-barTNumText is a machine learning model from lIlBrother. 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 card lists the license as apache-2.0.
- ko-barTNumText(TNT Model🧨): Try Number To Korean Reading(숫자를 한글로 바꾸는 모델) - Table of Contents - Model Details - Uses - Evaluation - How to Get Started With the Model
Downloads · 30 days
10
2% of all-time downloads
All-time downloads
512
Public
Repo size
1.5 GB
Likes
2
Public
Click a slice to open those files.
.bin496 MB · 100%
From the Hugging Face model README
Model Description: 뭔가 찾아봐도 모델이나 알고리즘이 딱히 없어서 만들어본 모델입니다. <br /> BartForConditionalGeneration Fine-Tuning Model For Number To Korean <br /> BartForConditionalGeneration으로 파인튜닝한, 숫자를 한글로 변환하는 Task 입니다. <br />
Dataset use Korea aihub <br /> I can't open my fine-tuning datasets for my private issue <br /> 데이터셋은 Korea aihub에서 받아서 사용하였으며, 파인튜닝에 사용된 모든 데이터를 사정상 공개해드릴 수는 없습니다. <br />
Korea aihub data is ONLY permit to Korean!!!!!!! <br /> aihub에서 데이터를 받으실 분은 한국인일 것이므로, 한글로만 작성합니다. <br /> 정확히는 음성전사를 철자전사로 번역하는 형태로 학습된 모델입니다. (ETRI 전사기준) <br />
In case, ten million, some people use 10 million or some people use 10000000, so this model is crucial for training datasets <br /> 천만을 1000만 혹은 10000000으로 쓸 수도 있기에, Training Datasets에 따라 결과는 상이할 수 있습니다. <br />
수관형사와 수 의존명사의 띄어쓰기에 따라 결과가 확연히 달라질 수 있습니다. (쉰살, 쉰 살 -> 쉰살, 50살) https://eretz2.tistory.com/34 <br /> 일단은 기준을 잡고 치우치게 학습시키기엔 어떻게 사용될지 몰라, 학습 데이터 분포에 맡기도록 했습니다. (쉰 살이 더 많을까 쉰살이 더 많을까!?)
Developed by: Yoo SungHyun(https://github.com/YooSungHyun)
Language(s): Korean
License: apache-2.0
Parent Model: See the kobart-base-v2 for more information about the pre-trained base model.
Want see more detail follow this URL KoGPT_num_converter <br /> and see bart_inference.py and bart_train.py
Just using evaluate-metric/bleu and evaluate-metric/rouge in huggingface evaluate library <br />
Training wanDB URL
from transformers.pipelines import Text2TextGenerationPipeline
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
texts = ["그러게 누가 6시까지 술을 마시래?"]
tokenizer = AutoTokenizer.from_pretrained("lIlBrother/ko-barTNumText")
model = AutoModelForSeq2SeqLM.from_pretrained("lIlBrother/ko-barTNumText")
seq2seqlm_pipeline = Text2TextGenerationPipeline(model=model, tokenizer=tokenizer)
kwargs = {
"min_length": 0,
"max_length": 1206,
"num_beams": 100,
"do_sample": False,
"num_beam_groups": 1,
}
pred = seq2seqlm_pipeline(texts, **kwargs)
print(pred)
# 그러게 누가 여섯 시까지 술을 마시래?