angeloskath / php-nlp-tools

Natural Language Processing Tools in PHP
Do What The F*ck You Want To Public License
753 stars 153 forks source link

Added Levenshtein Distance #51

Closed jtejido closed 6 years ago

angeloskath commented 6 years ago

Hmm, what about http://php.net/manual/en/function.levenshtein.php?

Maybe it should be a thin wrapper over the built in function in case of strings? Maybe even if we have less than 256 unique keys in the arrays...

Also the test has a typo $a should be $A.

jtejido commented 6 years ago

I understood. I think I'll close this request for now as I don't see the need for this (as the package already have similarity measures for tokenized documents already), when there is a built-in PHP function already in place.