To prepare, we need to do the following:
- Create a new Maven project
- Add the following dependency to the POM file:
<dependency>
<groupId>edu.stanford.nlp</groupId>
<artifactId>stanford-corenlp</artifactId>
<version>3.9.2</version>
</dependency>
In the browser, perform the following steps:
- Navigate to https://stanfordnlp.github.io/CoreNLP/#download.
- Select the download link for English download 3.9.2. This will download the file, stanford-english-corenlp-2018-10-05-models.jar.
- Select a download directory and extract the contents of this JAR file to a convenient location. In the directory, ...stanford-english-corenlp-2018-10-05-modelsedustanford lpmodelslexparser, you find the file, stanford-corenlp-models-current.jar.
- Copy it to the root directory of your project.