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.
而stringdist
在stringdist
包确实太,甚至快于levenshteinDist
在一定条件下( 1 )
levenshteinDist (from the RecordLinkage
package) calls compiled C code. Give it a try.
你也可以从Biostrings
尝试stringDist
You could also use levenshtein_distance()
from the textTinyR
package. I got 'calloc' memory errors with all other packages when it came to larger character vectors of around 30k characters. Only textTinyR
worked for me!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.