Natural Language Processing with Java Cookbook
上QQ阅读APP看书,第一时间看更新

Getting ready

To prepare, we need to do the following:

  1. Create a new Maven project.
  2. Add the following POM dependency to your project:
<dependency>
<groupId>org.apache.opennlp</groupId>
<artifactId>opennlp-tools</artifactId>
<version>1.9.0</version>
</dependency>
  1. Download the en-sent.bin file from http://opennlp.sourceforge.net/models-1.5/. Save the file in your project's root directory.