comparing two sentences of strings
이전 댓글 표시
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 ?
채택된 답변
추가 답변 (2개)
Greg Dionne
2016년 10월 21일
0 개 추천
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").
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!