comparing two sentences of strings
Ältere Kommentare anzeigen
how i want measure between sentences of words example 1) " the monkey wants to eat banana the dog want to run after cat" 2) " munkey to to eat banan the dogy wabt to rub cat"
it is result of some ocr so i need to measure 1. correct location 2. distance between words like monkey abd munkey , dog dogy
word can repeat so i want to measure relative good location what best method i was thinkink use ismemebr , or regexp ?
Akzeptierte Antwort
Weitere Antworten (2)
Michael scheinfeild
am 19 Feb. 2015
0 Stimmen
Greg Dionne
am 21 Okt. 2016
0 Stimmen
Search the internet for "edit distance". MATLAB has a variant that works on real signals, called EDR. It does insertion/deletion but not transposition (e.g. "eht" vs "the").
Kategorien
Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!