Where can the documentation for python-Levenshtein be found online? [closed]

坚强是说给别人听的谎言 提交于 2019-12-18 11:47:51

问题


I've found a great python library implementing Levenshtein functions (distance, ratio, etc.) at http://code.google.com/p/pylevenshtein/ but the project seems inactive and the documentation is nowhere to be found. I was wondering if anyone knows better than me and can point me to the documentation.


回答1:


You won't have to generate the docs yourself. There's an online copy of the original Python Levenshtein API: http://www.coli.uni-saarland.de/courses/LT1/2011/slides/Python-Levenshtein.html




回答2:


Here is an example:

# install with: pip install python-Levenshtein

from Levenshtein import distance
edit_dist = distance("ah", "aho")



回答3:


Follow instructions at the updated version: https://github.com/joncasdam/python-Levenshtein

To get a generated documentation. This was updated 3 months back.




回答4:


download it from that google repo

extract it

download http://kambing.ui.ac.id/gentoo-portage/dev-python/python-levenshtein/files/genextdoc.py to the same folder where you extracted

double click on gendoc.sh

you should now see a levenstein.html which is the documentation



来源:https://stackoverflow.com/questions/18134437/where-can-the-documentation-for-python-levenshtein-be-found-online

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!