Instructions to use pythainlp/thaig2p-v2.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pythainlp/thaig2p-v2.0 with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("pythainlp/thaig2p-v2.0") model = AutoModelForSeq2SeqLM.from_pretrained("pythainlp/thaig2p-v2.0") - Notebooks
- Google Colab
- Kaggle
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 |
+
```
|