比较两个文本/与谷歌

时间:2011-05-30 09:40:47

标签: r

  

可能重复:
  Simple Comparing of two texts in R

如此处Simple Comparing of two texts in R我提出了另一个问题

所以,我试过这个,但仍然存在问题。

text1 <- "This is a test. Weather is fine"
text2 <- "This text is a test. This weather is fine. This blabalba This "

然后结果是:

> comparesentences(text1,text2)
$text1
[1] "This* is a test. Weather is fine"

$text2
[1] "This* text is a test. This* weather is fine. This* blabalba This*"

换句话说,R只是寻找第一个常用词,而不是所有常用词。

接下来,是否有可能在谷歌中查找句子或文本并获得如上所述的结果?

很多

0 个答案:

没有答案