1
我的问题是有点前传中Visualise distances between texts比较句子或段落的表
问我有一个表有两个句子来比较每个观察的问题。
compare <- read.table(header=T,sep="|", text=
"person | text1 | text2
person1 | the quick brown fox jumps over the lazy dog | the quick cat jumps on the fast fog
person2 | I dont want to work today | I feel like working today
"
)
我想要一列,其中的值表示每个观察的两个句子之间的差异。 基本上我正在寻找类似于agrep
的功能,但用于比较句子或段落。
该示例的预期输出是多少? –
这有帮助吗? http://stackoverflow.com/questions/3182091/fast-levenshtein-distance-in-r – Superbest