wannaphong commited on
Commit
0eaa143
·
verified ·
1 Parent(s): acdb890

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -1
README.md CHANGED
@@ -6,4 +6,11 @@ language:
6
 
7
  # Thai G2P v2.0
8
 
9
- This is a grapheme-to-phoneme model for Thai language. It trained from [wiktionary-23-7-2022-clean.tsv](https://github.com/PyThaiNLP/thai-g2p-wiktionary-corpus/blob/main/wiktionary-23-7-2022-clean.tsv).
 
 
 
 
 
 
 
 
6
 
7
  # Thai G2P v2.0
8
 
9
+ This is a grapheme-to-phoneme model for Thai language. It trained from [wiktionary-23-7-2022-clean.tsv](https://github.com/PyThaiNLP/thai-g2p-wiktionary-corpus/blob/main/wiktionary-23-7-2022-clean.tsv).
10
+
11
+ ```python
12
+ from transformers import pipeline
13
+ generator = pipeline("text2text-generation", model = "pythainlp/thaig2p-v2.0")
14
+ generator("สามารถ")
15
+ # {'generated_text': 's aː ˩˩˦ . m aː t̚ ˥˩'}
16
+ ```