您好, 我正在使用sqlite来存储跟踪电视节目信息的节目的数据。我在将用户信息与官方剧集标题匹配时遇到问题。用户信息可能拼写错误或完全不正确。我需要一种方法来将最佳匹配返回给最终用户可能部分错误的标题名称。 Aka,我不能做一个直接的短语匹配系统。 基本上是SQL的初学者,我不知道怎么做不正确的模糊逻辑匹配信息。我知道你可以做类似和通配符,但如何使用字符串?或者我是否将标题拆分为单词然后搜索?任何帮助将不胜感激! 谢谢!
Hello, I am using sqlite to store data for a program that tracks TV show info. I am having problems matching the users info to the official episode titles. The users information could be misspelled or completely incorrect. I need a way to return the best match to the end users potentially partially incorrect title names. Aka, I can't do a straight out phrase matching system. Being basically a beginner at SQL, I am not sure how to do a fuzzy logic match with incorrect info. I know you can do like and wildcards but how can that work with a string? Or do I do split the title into words and then search that way? Any help would be greatly appreciated! Thanks!
推荐答案首先,它会很好了解模糊集和模糊逻辑的基础知识。我想说,先决条件是对经典,非模糊集理论和逻辑的理解。 我希望你能阅读和理解这些文章或许这些文章中的一些参考文献,至少要理解这些领域的重要性: en.wikipedia/wiki/Fuzzy_set [ ^ ], en.wikipedia/wiki/Fuzzy_logic [ ^ ]。 如今,基于模糊数学的软件正在增长,包括搜索算法: http ://en.wikipedia/wiki/Approximate_string_matching [ ^ ], http ://en.wikipedia/wiki/Levenshtein_distance [ ^ ]。 参见: ntz-develop.blogspot/2011/03/fuzzy-string-search.html [ ^ ]。 你可以得到一个这些CodeProject文章中基于 Levenshtein距离(见上文)的模糊匹配思想: www.codeproject/Articles/162790/Fuzzy-String-Matching-with-Edit-Distance [ ^ ], www.codeproject/Articles/36869/Fuzzy-Search [ ^ ]。 您可以找到更多:bit.ly/17Nyzzj [ ^ ]。 我不希望在论坛上提出快速问题并获得快速答案,以及简短的食谱配方和即用型解决方案。需要非常认真的教育,即使它可以是自我教育,仍然是教育。
似乎我只需要搜索vb中的数据,因为我已经被告知,我不能用SQL做到这一点。 It seems I will just have to search through the data in vb since I've been informed, ever so precisely, that I cannot do it in SQL.
更多推荐
Sql与模糊逻辑字符串匹配
发布评论