分析和查询stardict字典文件。
stargaze的Python项目详细描述
版本号:0.0.2
概述
在Stardict字典中查找单词。
安装/使用
要安装,请使用pip:
$ pip install stargaze
或者克隆回购协议:
$ git clone https://github.com/codito/stargaze.git $ python setup.py install
示例
>>>importstargaze>>>d=stargaze.Dictionary("./docs/words")>>>d.lookup("word1")'word1_defn'>>># let's lookup for a synonym...d.lookup("word1_syn1")'word1_defn'
许可证
麻省理工学院
贡献
最欢迎拉取请求。