R中的快速Levenshtein距离? [英] Fast Levenshtein distance in R?
本文介绍了R中的快速Levenshtein距离?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有包含以 C 或 Fortran 代码实现的 Levenshtein 距离计数功能的包?我有很多字符串要比较,而 MiscPsycho
中的 stringMatch
太慢了.
Is there a package that contains Levenshtein distance counting function which is implemented as a C or Fortran code? I have many strings to compare and stringMatch
from MiscPsycho
is too slow for this.
推荐答案
levenshteinDist(来自 RecordLinkage
包)调用已编译的 C 代码.试试看吧.
levenshteinDist (from the RecordLinkage
package) calls compiled C code. Give it a try.
这篇关于R中的快速Levenshtein距离?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文