weighted-levenshtein-substring


Nameweighted-levenshtein-substring JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/IsaacRe/weighed-levenshtein-substring
SummaryLibrary providing functions to calculate Levenshtein distance, Optimal String Alignment distance, and Damerau-Levenshtein distance, where the cost of each operation can be weighted by letter.
upload_time2022-12-28 19:26:48
maintainer
docs_urlNone
authorDavid Su (InfoScout)
requires_python
licenseMIT
keywords levenshtein damerau weight weighted distance
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            Weighted Levenshtein
--------------------

Codebase forked from https://github.com/infoscout/weighted-levenshtein

Install
~~~~~~~

.. code:: bash

   pip3 install weighted-levenshtein-substring

Usage
~~~~~

Use

.. code:: python

   from weighted_levenshtein import mod_lev

   distance: float = mod_lev(string, pattern)

To find the lowest edit distance between ``pattern`` and any substring
of ``string``.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/IsaacRe/weighed-levenshtein-substring",
    "name": "weighted-levenshtein-substring",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Levenshtein Damerau weight weighted distance",
    "author": "David Su (InfoScout)",
    "author_email": "david.su@infoscoutinc.com",
    "download_url": "https://files.pythonhosted.org/packages/e2/7e/b4bd05fcdc25434dab380c01111aff49bedfaac7a30bfbc19580deb7ae0a/weighted_levenshtein-substring-0.0.3.tar.gz",
    "platform": null,
    "description": "Weighted Levenshtein\n--------------------\n\nCodebase forked from https://github.com/infoscout/weighted-levenshtein\n\nInstall\n~~~~~~~\n\n.. code:: bash\n\n   pip3 install weighted-levenshtein-substring\n\nUsage\n~~~~~\n\nUse\n\n.. code:: python\n\n   from weighted_levenshtein import mod_lev\n\n   distance: float = mod_lev(string, pattern)\n\nTo find the lowest edit distance between ``pattern`` and any substring\nof ``string``.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Library providing functions to calculate Levenshtein distance, Optimal String Alignment distance, and Damerau-Levenshtein distance, where the cost of each operation can be weighted by letter.",
    "version": "0.0.3",
    "split_keywords": [
        "levenshtein",
        "damerau",
        "weight",
        "weighted",
        "distance"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "4672b089c43ba297cf8ede58e061c4cf",
                "sha256": "03f3114d60e823971e70e88d6ad9e1fccc814deb49386c9b6f27068c94c4add9"
            },
            "downloads": -1,
            "filename": "weighted_levenshtein_substring-0.0.3-cp37-cp37m-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "4672b089c43ba297cf8ede58e061c4cf",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": null,
            "size": 89125,
            "upload_time": "2022-12-28T19:26:46",
            "upload_time_iso_8601": "2022-12-28T19:26:46.551218Z",
            "url": "https://files.pythonhosted.org/packages/66/36/99375aec96a786d81acc85a3435fa161212133af1f20d693a1125e325cb1/weighted_levenshtein_substring-0.0.3-cp37-cp37m-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "f72feb3ac057b28d5f4a74fc97786f6a",
                "sha256": "84c9507bafe150e3d0823833ee8a222f6e8ecdcfb663e6cdc6345130b0ab10d1"
            },
            "downloads": -1,
            "filename": "weighted_levenshtein-substring-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "f72feb3ac057b28d5f4a74fc97786f6a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 134972,
            "upload_time": "2022-12-28T19:26:48",
            "upload_time_iso_8601": "2022-12-28T19:26:48.073740Z",
            "url": "https://files.pythonhosted.org/packages/e2/7e/b4bd05fcdc25434dab380c01111aff49bedfaac7a30bfbc19580deb7ae0a/weighted_levenshtein-substring-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-28 19:26:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "IsaacRe",
    "github_project": "weighed-levenshtein-substring",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": false,
    "circle": true,
    "requirements": [],
    "lcname": "weighted-levenshtein-substring"
}
        
Elapsed time: 0.05623s