开发者

Is there an implementation of Levenshtein distance or similar for iphone?

开发者 https://www.devze.com 2023-01-23 06:32 出处:网络
I want to take a string entered in an iphone app and populate a tableview with strings from a dictionary that are likely correct spellings of the word开发者_开发百科.I understand levenshtein distance

I want to take a string entered in an iphone app and populate a tableview with strings from a dictionary that are likely correct spellings of the word开发者_开发百科. I understand levenshtein distance is the way to do this but wondering if anyone was aware of any way to do this natively or whether there was a library that i could use?


In addition to the implementation referenced in the comments, there is also a implementation here which gives you a bit more flexibility and is built for 64bit.

0

精彩评论

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