A basic pinyin project in Python. The model is based on n_gram language model. Considering computing complexity and accuracy, 2_gram and 3_gram is implemented.
- python3
- tqdm
pip3 install -r requirements.txt
python3 pinyin --load model/2-gram-model.model
The model provided is trained with sina_news in some year(forgot...)