课程: Complete Guide to NLP with R
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Make useful metadata
- [Host] We've identified three types of metadata, corpus, indexed, and local. Let's take a look at how to use them. I'm going to show you an example that will eventually get to line 40 of this exercise file, and I want to look at that line to tell you, where it is we're eventually going. In line 40, I create something called newVCorpus, and I'm using a V corpus command. Note that I'm using a data frame source and I'm importing the contents of a data frame. The important point that we're going to demonstrate is that that data frame contains a document ID. It contains content, but it also includes several columns, and those columns will be imported as additional metadata and we'll take a look at where that metadata shows up. Now that you know where we're going, let's go all the way to the top of the exercise file. Of course, we need to make the TM package available and I'll use the library command to do that. I'm also going…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。