<dependency>
<groupId>org.apache.opennlp</groupId>
<artifactId>opennlp-tools</artifactId>
<version>2.5.0</version>
</dependency>
Apache OpenNLP is also distributed via the Maven Central Repository. The maven artifacts are located here. The Apache OpenNLP project publishes the library, javadoc and source code jars. To use OpenNLP in your Maven project, specify exactly one of the following dependencies, all transient dependencies are resolved automatically.
To use the OpenNLP Tools define the following dependency:
<dependency>
<groupId>org.apache.opennlp</groupId>
<artifactId>opennlp-tools</artifactId>
<version>2.5.0</version>
</dependency>
To use the OpenNLP Tools Models define the following dependency:
<dependency>
<groupId>org.apache.opennlp</groupId>
<artifactId>opennlp-tools-models</artifactId>
<version>2.5.0</version>
</dependency>
To use the OpenNLP DL define the following dependency:
<dependency>
<groupId>org.apache.opennlp</groupId>
<artifactId>opennlp-dl</artifactId>
<version>2.5.0</version>
</dependency>
To use the OpenNLP DL GPU define the following dependency:
<dependency>
<groupId>org.apache.opennlp</groupId>
<artifactId>opennlp-dl-gpu</artifactId>
<version>2.5.0</version>
</dependency>
To use the OpenNLP UIMA Annotators define the following dependency:
<dependency>
<groupId>org.apache.opennlp</groupId>
<artifactId>opennlp-uima</artifactId>
<version>2.5.0</version>
</dependency>
To use the OpenNLP Morfologik-Addon define the following dependency:
<dependency>
<groupId>org.apache.opennlp</groupId>
<artifactId>opennlp-morfologik-addon</artifactId>
<version>2.5.0</version>
</dependency>
To use the current version of the main branch define the following dependency:
<dependency>
<groupId>org.apache.opennlp</groupId>
<artifactId>opennlp-tools</artifactId>
<version>2.5.1-SNAPSHOT</version>
</dependency>
Note
|
All SNAPSHOT dependencies require the following Maven repository:
|
<repositories>
<repository>
<id>apache opennlp snapshot</id>
<url>https://repository.apache.org/content/repositories/snapshots/</url>
</repository>
</repositories>