Downloads · 30 days
13
1% of all-time downloads
NHNDQ/bart-speech-style-converter
bart-speech-style-converter is a machine learning model from NHNDQ. 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 cc-by-4.0.
Model Description: Speech style converter model based on gogamza/kobart-base-v2 Developed by: Juhwan, Lee and Jisu, Kim, TakSung Heo, and Minsu Jeong Model Type: Text-generation Language: Korean License: CC-BY-4.0
Downloads · 30 days
13
1% of all-time downloads
All-time downloads
2.5K
Public
Parameters
124M
991 MB on disk
Likes
6
Public
Click a slice to open those files.
.bin496 MB · 50%
From the Hugging Face model README
This model can be used for convert speech style
from transformers import pipeline
model = "KoJLabs/bart-speech-style-converter"
tokenizer = AutoTokenizer.from_pretrained(model)
nlg_pipeline = pipeline('text2text-generation',model=model, tokenizer=tokenizer)
styles = ["문어체", "구어체", "안드로이드", "아재", "채팅", "초등학생", "이모티콘", "enfp", "신사", "할아버지", "할머니", "중학생", "왕", "나루토", "선비", "소심한", "번역기"]
for style in styles:
text = f"{style} 형식으로 변환:오늘은 닭볶음탕을 먹었다. 맛있었다."
out = nlg_pipeline(text, max_length=100)
print(style, out[0]['generated_text'])
https://github.com/KoJLabs/speech-style/tree/main
You can exercise korean speech style conversion task with python package KoTAN