How to compare text
-
27-09-2019 - |
문제
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
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.
제휴하지 않습니다 StackOverflow