jisukim8873
commited on
Commit
β’
ffc9db6
1
Parent(s):
b6ec448
Update README.md
Browse files
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
|