pinyin-tone-converter

Numbered pinyin to accented pinyin converter


Keywords
python, pinyin, pinyin-tone-converter, tones, numbered, marked, accented, chinese
License
MIT
Install
pip install pinyin-tone-converter==1.0.2

Documentation

pinyin-tone-converter

TravisCI Build Status

Python library to convert pinyin with numbers to tone with marks. This library is based on https://github.com/chanind/pinyin-tone-converter

Install

pip install pinyin-tone-converter

How to use

from pinyin_tone_converter.pinyin_tone_converter import PinyinToneConverter
PinyinToneConverter().convert_text("lu4")

"lù"

Examples can be seen in tests.