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-parser</artifactId> <version>3.9.2</version></dependency>
In a 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.
- Extract the contents of this JAR file to a convenient location.
- In the directory, ...\stanford-english-corenlp-2018-10-05-models\edu\stanford\nlp\models\lexparser, you will find the file, EnglishPCFG.ser.gz.
- Copy it to the root ...