Stanford CoreNLP

There are quite a lot of mature NLP libraries in Java. For example, Stanford CoreNLP, OpenNLP, and GATE. Many libraries that we have previously covered  have some NLP modules, for example, Smile or JSAT.

In this chapter, we will use Stanford CoreNLP. There is no particular reason, and it should be possible to reproduce the examples in any other library if needed.

Let's start by specifying the following dependencies in our pom.xml:

<dependency>  <groupId>edu.stanford.nlp</groupId>  <artifactId>stanford-corenlp</artifactId>  <version>3.6.0</version></dependency><dependency>  <groupId>edu.stanford.nlp</groupId>  <artifactId>stanford-corenlp</artifactId>  <version>3.6.0</version>  <classifier>models</classifier></dependency>

There ...

Get Mastering Java for Data Science now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.