editdistance-s-1.0.0


توضیحات

Fast implementation of the edit distance (Levenshtein distance)
ویژگی مقدار
سیستم عامل -
نام فایل editdistance-s-1.0.0
نام editdistance-s
نسخه کتابخانه 1.0.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Anthony Sottile
ایمیل نویسنده asottile@umich.edu
آدرس صفحه اصلی https://www.github.com/asottile/editdistance-s
آدرس اینترنتی https://pypi.org/project/editdistance-s/
مجوز MIT
[![Build Status](https://dev.azure.com/asottile/asottile/_apis/build/status/asottile.editdistance-s?branchName=master)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=70&branchName=master) [![Azure DevOps coverage](https://img.shields.io/azure-devops/coverage/asottile/asottile/70/master.svg)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=70&branchName=master) [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/asottile/editdistance-s/master.svg)](https://results.pre-commit.ci/latest/github/asottile/editdistance-s/master) editdistance-s ============== Fast implementation of the edit distance (Levenshtein distance). ### fork this is a fork of [editdistance] with the following changes: - `__hash__` based support is removed as it makes incorrect assumptions - only strings (type `str`) are supported - cffi replaces cython (so `abi3` wheels can be produced) - the module is renamed to `editdistance_s` - the public api does not contain `eval` (only `distance`) [editdistance]: https://github.com/roy-ht/editdistance ### installation ```bash pip install editdistance-s ``` - wheels should be available on pypi in most cases ### api #### `distance(s1: str, s2: str) -> int` compute the edit distance ```pycon >>> import editdistance_s >>> editdistance_s.distance('hello', 'hell☃') 1 ```


زبان مورد نیاز

مقدار نام
>=3.6.1 Python


نحوه نصب


نصب پکیج whl editdistance-s-1.0.0:

    pip install editdistance-s-1.0.0.whl


نصب پکیج tar.gz editdistance-s-1.0.0:

    pip install editdistance-s-1.0.0.tar.gz