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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Thai G2P v2.0
This is a grapheme-to-phoneme model for Thai language. It trained from wiktionary-23-7-2022-clean.tsv.
source code: https://github.com/wannaphong/thai-g2p-v2
from transformers import pipeline
generator = pipeline("text2text-generation", model = "pythainlp/thaig2p-v2.0")
generator("สามารถ")
# {'generated_text': 's aː ˩˩˦ . m aː t̚ ˥˩'}
- Downloads last month
- 223
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support