课程: R for Data Science: Lunch Break Lessons

免费学习该课程!

今天就开通帐号,24,100 门业界名师课程任您挑!

NLP packages: Quanteda

NLP packages: Quanteda

- Quanteda is a natural language processing package available for the R language. It's one of many. Let's take the session to become familiar with Quanteda and how it works in the natural language processing field. First we'll need a corpus. Quanteda can import many different types of corpuses. In this case, I've chosen to use the Vcorpus that we created back in exercise 164. If you don't have RT_corpus as a Vcorpus you'll need to go back to that exercise file and create it. Now I've already done that. So it's available to me. In line three though, I've installed the package quanteda. And in line four I've used the library quanteda to bring it into play. I'm all set to convert the Vcorpus into a quanteda corpus. And in order to do that, I'll type an RT_quant for quanteda. And into that variable I'm going to place corpus. So into RT_quant, I'm going to place the result of corpus which is a quanteda command. And…

内容