Coder Social home page Coder Social logo

jfjlaros / dict-trie Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 3.0 64 KB

Trie implementation for approximate string matching.

License: MIT License

Python 100.00%
dictionary edit-distance hamming-distance levenshtein-distance mismatch prefix-tree trie

dict-trie's Issues

Word extracts based on Damerau Levenshtein Distance

Hi, Thanks for the Trie implementation in Python along with string matching based on Hamming and Levenshtein distance. Wonderful (since couldn't find a simpler way to get string matches using Trie)
Is it possible to also include Damerau-Levenshtein distance measure with a parameter for edit distance, since almost all the spell correct solutions use DL distance measure to get suggestion candidates from a dictionary?
Happy to work on it if needed :)

Retrieving all prefix matches?

Is there a way to retrieve all keys matching a prefix?

I see there's a has_prefix method and a private _find method for doing general searching, but there's no way to access it to get the keys found in has_prefix. Am I missing something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.