From the course: R for Data Science: Lunch Break Lessons

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

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…

Contents