使用 Python 将用罗马文字书写的孟加拉语转换为孟加拉语的拼音

Convert Bangla written in Roman script to its phonetic equivalent in Bangla using Python

我得到了一个名为 PyAvroPhonetic 的 python 软件包并安装了它。

>>> from pyavrophonetic import avro

在运行上面的脚本之后我得到了以下错误-

ImportError: No module named utils

但是在运行之后是下面的脚本

>>> import pyavrophonetic

没有错误。这里是转换代码

>>> from pyavrophonetic import avro
>>> avro.parse('aami banglay gaan gai')

我必须使用avro 来调用解析函数。我应该怎么办。我正在使用 python 2.7.10。提前致谢。

pyAvro语音学:https://github.com/TrendBreaker/pyAvroPhonetic

我目前正在使用 Python 3,我可以分享我使用 Avro Phonetic 的方式。我在本地使用修改过的 python 3 兼容 "pyAvroPhonetic" 库和我的脚本。您可以在 - "https://github.com/improlabs/Banglish-Sentiment-Analysis/tree/master/python3"

处获取结构