-
Notifications
You must be signed in to change notification settings - Fork 3
BK Tree implementation in PHP
beezee/PHP-BK-Tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Uses levenshtein to query, finds similar words within a set of words. Benchmarked at about 20 seconds to build and run about 3k queries on a dictionary of 3k words. Basic usage: $terms = array('term1', 'term2', 'etc') //must be unique values only $tree = new bkTree(array_pop($terms)); $tree->build($terms); $r = $tree->query('term', 2) //term to find matches for, max levenshtein distance to accept as match. $r->matches will contain an array of any matches found based on the threshold passed to query();
About
BK Tree implementation in PHP
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published