jisukim8873 commited on
Commit
ffc9db6
β€’
1 Parent(s): b6ec448

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +35 -0
README.md CHANGED
@@ -21,4 +21,39 @@ tags:
21
 
22
  ## Uses
23
  This model can be used for convert speech style
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
 
22
  ## Uses
23
  This model can be used for convert speech style
24
+ * formal: 문어체
25
+ * informal: ꡬ어체
26
+ * android: μ•ˆλ“œλ‘œμ΄λ“œ
27
+ * azae: μ•„μž¬
28
+ * chat: μ±„νŒ…
29
+ * choding: μ΄ˆλ“±ν•™μƒ
30
+ * emoticon: 이λͺ¨ν‹°μ½˜
31
+ * enfp: enfp
32
+ * gentle: 신사
33
+ * halbae: 할아버지
34
+ * halmae: ν• λ¨Έλ‹ˆ
35
+ * joongding: 쀑학생
36
+ * king: μ™•
37
+ * naruto: λ‚˜λ£¨ν† 
38
+ * seonbi: μ„ λΉ„
39
+ * sosim: μ†Œμ‹¬ν•œ
40
+ * translator: λ²ˆμ—­κΈ°
41
 
42
+ ```python
43
+
44
+ from transformers import pipeline
45
+
46
+ model = "KoJLabs/bart-speech-style-converter"
47
+ tokenizer = AutoTokenizer.from_pretrained(model)
48
+
49
+ nlg_pipeline = pipeline('text2text-generation',model=model, tokenizer=tokenizer)
50
+ styles = ["문어체", "ꡬ어체", "μ•ˆλ“œλ‘œμ΄λ“œ", "μ•„μž¬", "μ±„νŒ…", "μ΄ˆλ“±ν•™μƒ", "이λͺ¨ν‹°μ½˜", "enfp", "신사", "할아버지", "ν• λ¨Έλ‹ˆ", "쀑학생", "μ™•", "λ‚˜λ£¨ν† ", "μ„ λΉ„", "μ†Œμ‹¬ν•œ", "λ²ˆμ—­κΈ°"]
51
+
52
+ for style in styles:
53
+ text = f"{style} ν˜•μ‹μœΌλ‘œ λ³€ν™˜:μ˜€λŠ˜μ€ λ‹­λ³ΆμŒνƒ•μ„ λ¨Ήμ—ˆλ‹€. λ§›μžˆμ—ˆλ‹€."
54
+ out = nlg_pipeline(text, max_length=100)
55
+ print(style, out[0]['generated_text'])
56
+ ```
57
+
58
+ ## Model Source
59
+ https://github.com/KoJLabs/speech-style/tree/main