用于hspell的python包装器
Hspell的Python项目详细描述
这是[hspell]的简单python包装器(http://hspell.ivrix.org.il/)。
这只是hspell的python包装。
@math.technion.ac.il
danken@cs.technion.ac.il
````
接电话:
1.下载hspell:http://hspell.ivrix.org.il/
2。配置:./configure--enable shared--enable linginfo
3。制造:制造
4.安装:安装
2.python setup.py install
pip可以安装hspellpy:
`````
pip install hspellpy
`````
无法打开共享对象文件:没有这样的文件或目录
``
您应该验证libhspell.so.0可以在ldu LIBRARY路径中访问。
核对词('''''.'')]核对词是否存在于字典
真< BR/> & gt;& gt;拼写。拼写:Hspell(语言学= TRUE)“拼写者”中的“语法糖”
“真”
“拼写者”。请尝试“更正”(“拼写错误”)。see Hspell doc)
['הדג', 'עדה']
>>> speller.enum_splits('וילדותיה') # list all splits of a word
>[WordEnumSplit(word='וילדותיה', baseword='ילדותיה', preflen=1, prefspec=60)]
>>> speller.linginfo('ילדה') # morphology
[LinginfoWord(word='ילדה', linginfo='פ,נ,3,יחיד,עבר'),
LinginfoWord(word='ילדה', linginfo='ע,נ,יחיד'),
LinginfoWord(word='ילדה', linginfo='ע,ז,יחיד,כינוי/נ,3,יחיד')]
```
@math.technion.ac.il
danken@cs.technion.ac.il
````
接电话:
1.下载hspell:http://hspell.ivrix.org.il/
2。配置:./configure--enable shared--enable linginfo
3。制造:制造
4.安装:安装
2.python setup.py install
pip可以安装hspellpy:
`````
pip install hspellpy
`````
无法打开共享对象文件:没有这样的文件或目录
``
您应该验证libhspell.so.0可以在ldu LIBRARY路径中访问。
核对词('''''.'')]核对词是否存在于字典
真< BR/> & gt;& gt;拼写。拼写:Hspell(语言学= TRUE)“拼写者”中的“语法糖”
“真”
“拼写者”。请尝试“更正”(“拼写错误”)。see Hspell doc)
['הדג', 'עדה']
>>> speller.enum_splits('וילדותיה') # list all splits of a word
>[WordEnumSplit(word='וילדותיה', baseword='ילדותיה', preflen=1, prefspec=60)]
>>> speller.linginfo('ילדה') # morphology
[LinginfoWord(word='ילדה', linginfo='פ,נ,3,יחיד,עבר'),
LinginfoWord(word='ילדה', linginfo='ע,נ,יחיד'),
LinginfoWord(word='ילדה', linginfo='ע,ז,יחיד,כינוי/נ,3,יחיד')]
```