【发布时间】:2020-02-03 17:35:16
【问题描述】:
如何从感伤者词典中删除多个术语?
例如,“请”和“建议”这两个词与积极情绪相关联,但我不希望这些特定词影响我的分析。
我已经想出一种方法,使用以下脚本排除 1 个单词,但需要排除更多:
mysentiment<- lexicon::hash_sentiment_jockers_rinker[x != "please"]
mytext <- c(
'Hello, We are looking to purchase this material for a part we will be making, but your site doesnt state that this is RoHS complaint. Is it possible that its just not listed as such online, but it actually is RoHS complaint? Please advise. '
)
sentiment_by(mytext, polarity_dt = mysentiment)
extract_sentiment_terms(mytext,polarity_dt = mysentiment)
【问题讨论】:
标签: r