Quickly compare a string against a Collection in Java

前端 未结 3 2019
借酒劲吻你
借酒劲吻你 2020-12-18 06:42

I am trying to calculate edit distances of a string against a collection to find the closest match. My current problem is that the collection is very large (about 25000 item

3条回答
  •  天涯浪人
    2020-12-18 07:16

    Levenshtein Automata allow for fast selection of a set of words from a large dictionary such that they are within the given Levenshtein distance from a given word.

    See: Schulz K, Mihov S. (2002) Fast String Correction with Levenshtein-Automata.

提交回复
热议问题