
上QQ阅读APP看书,第一时间看更新
Getting ready
To prepare, we need to do the following:
- Create a new Maven project.
- Add the following POM dependency to your project:
<dependency>
<groupId>org.apache.opennlp</groupId>
<artifactId>opennlp-tools</artifactId>
<version>1.9.0</version>
</dependency>
- Download the en-sent.bin file from http://opennlp.sourceforge.net/models-1.5/. Save the file in your project's root directory.