继续我对文本分析的探索,我遇到了另一个障碍。我了解逻辑,但不知道如何在R中执行此操作。 下面是我想要做的: 我有2个CSV - 1.包含10,000条评论2.包含单词列表 我想选择所有包含第二个CSV中任何单词的评论。我该怎么办?只从评论列表中提取相关评论
例如:
**CSV 1:**
this is a sample set
the comments are not real
this is a random set of words
hope this helps the problem case
thankyou for helping out
i have learned a lot here
feel free to comment
**CSV 2**
sample
set
comment
**Expected output:**
this is a sample set
the comments are not real
this is a random set of words
feel free to comment
请注意: 不同形式的话也被认为是,例如,评论和意见都被认为。
两者分别是评论和单词列表 – eclairs
你可以让你的例子重现吗? – Sotos