课程: Complete Guide to NLP with R
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Plotting text mining
- [Instructor] Visualizations are useful for interpreting any dataset and it's the same way with natural language processing. There are a couple of ways to visualize the results of natural language processing. In this session, let's talk about simple plots. The first thing to note is is that the plot command, which is included as part of the TM package, requires something called Rgraphviz. To install Rgraphviz, I've first of all brought in the TM package. Then I need to install something called BiocManager which is short for the bioconductor manager. In this case, it gave me an error because I've already installed this package and it wants to know if I want to reinstall it. In line five, I use the BiocManager to install Rgraphviz. Now I can read in our old friend the poetCorpus and I'm going to create a term document matrix from that corpus. Once I have that term document matrix, I can use the very simple plot command…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。