开始使用免费开始使用

按投诉类型可视化情感

现在让我们创建一个 sentiment_twitter 数据框,看看平均而言,投诉是否真的更消极。

本练习是课程的一部分

R 文本分析入门

查看课程

交互式实操练习

通过完成这段示例代码来试试这个练习。

sentiment_twitter <- tidy_twitter %>% 
  # Append the bing sentiment dictionary
  ___(___) %>% 
  # Count by complaint label and sentiment
  ___(___) %>% 
  # Spread the sentiment and count columns
  ___(___) %>% 
  # Compute overall_sentiment = positive - negative
  ___(___)
编辑并运行代码