开发者

Approximate string matching in C?

开发者 https://www.devze.com 2023-01-26 00:32 出处:网络
I am seeking for a C library that does approximate string matching.Calculati开发者_StackOverflow中文版ng Levenshtein distance for example.My query strings will be ~512 bytes.I know about Flamingo but

I am seeking for a C library that does approximate string matching. Calculati开发者_StackOverflow中文版ng Levenshtein distance for example. My query strings will be ~512 bytes. I know about Flamingo but it is C++.


Not a library but simple function you find here

A GPL Version


  • PyLevenshtein has C source and a Python wrapper: http://code.google.com/p/pylevenshtein/
  • Wikipedia has an article describing example implementations of Levenshtein distance: http://en.wikibooks.org/wiki/Algorithm_implementation/Strings/Levenshtein_distance#C

You might also be able to rewrite part of libraries to allow C code to call into them (via extern C calls).

0

精彩评论

暂无评论...
验证码 换一张
取 消