Update README.md
Browse files
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 |
+
```
|