1837 days ago
Perl one-liner for beginners !
...s//\n/' all.sent.classOnly > all.sent.classOnly.sep Replace all occurrences of pattern1 (...delete every character that is not a letter, white space or line end (replace with nothing) perl -pne&...1382 days ago
Levenshtein and Damerau-Levenshtein distance !
...Ex: TSAR to STAR Damerau-Levenshtein distance = 1 (Switching S and T positions cost only one operation) Levenshtein distance = 2 (Replace S by T and T by S)...951 days ago