문제

Like the title, How to compare text?. For a example, go to textdiff.com.

도움이 되었습니까?

해결책

Check out Levenshtein distance. This is a fairly general algorithm for identifying differences between two strings.

다른 팁

You may want to have a look at Pear's Text_Diff

http://pear.php.net/package/Text_Diff/

if you're looking for a terminal command, check out diff, found in linux by default. You can also have it on windows by installing cygwin [with a LOT of excess baggage. :\ ]

I would suggest Jaccard's Similarity coefficient. Treating each sentence as a unit.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top