课程: Complete Guide to NLP with R
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Word clouds
- [Instructor] Word clouds are a colorful, but simplistic way of looking at term frequency within a document. The TM package, along with two word cloud packages makes it fairly simple to produce these simplistic graphs. Let's take a look at how to do this. In line three, I bring in the TM package. In line four, I've given the command to install the word cloud package should you need to do so. And then in line five, I use the library command to bring it into my session of R. I pull in some standard data, I create a term document matrix, and then in line 18 through 24, I create a simplistic word cloud. Notice again, I'm using the pipe forward command to send data from one command to the next. The result shows up in line 23 where I've used the simple command word cloud. I've asked word cloud to only plot terms that appear more than 50 times and less than 100. Depending on the speed of your computer, this may take a certain…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。