课程: Complete Guide to NLP with R
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Sentiment analysis with sentiments( )
- [Instructor] Sentiment analysis is a natural language processing tool used to determine the intent of a document. By attaching values to words, we can determine whether a document is intended to be negative or positive or angry or happy. Let's take a look at how tidytext implements sentiment analysis and let's take a look at why you might be concerned about how sentiment analysis operates. In line three, four, and five, I bring in the tidyverse and tidytext packages. Then in line eight is the sentiments command. And sentiments provides for us a list of words, you can see these down in a console, followed by a sentiment, in this case, negative. So if you look at line two, abnormal is ranked as negative. Line nine provides us with all of the sentiments available in this particular dictionary, and you'll notice that only negative and positive appear as sentiments in this particular dictionary. What you're seeing is…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
-
-
-
-
-
-
-
-
-
(已锁定)
How to think like tidytext1 分钟 59 秒
-
(已锁定)
An example: Calculate the most popular terms in a document3 分钟 10 秒
-
(已锁定)
Tokenizing with unnest_tokens( )8 分钟 19 秒
-
(已锁定)
Stopwords, punctuation, whitespace, and numbers6 分钟 30 秒
-
(已锁定)
Stemming and lemmatization5 分钟 35 秒
-
(已锁定)
Term frequency with bind_tf_idf( )5 分钟 54 秒
-
(已锁定)
Sentiment analysis with sentiments( )4 分钟 44 秒
-
(已锁定)
Parts of speech with parts_of_speech( )4 分钟 32 秒
-
(已锁定)
Import and export from other NLP packages2 分钟 30 秒
-
(已锁定)
-
-
-
-
-
-
-
-
-