Apache OpenNLP is also distributed via the Maven Central Repository.The maven artifacts are locatedhere.The Apache OpenNLP project publishes the library, javadoc and source code jars.To use OpenNLP in yourMaven 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.3</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.3</version></dependency>
To use the OpenNLP DL define the following dependency:
<dependency> <groupId>org.apache.opennlp</groupId> <artifactId>opennlp-dl</artifactId> <version>2.5.3</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.3</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.3</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.3</version></dependency>
To use the current version of themain branch define the following dependency:
<dependency> <groupId>org.apache.opennlp</groupId> <artifactId>opennlp-tools</artifactId> <version>2.5.4-SNAPSHOT</version></dependency>
Note | AllSNAPSHOT dependencies require the following Maven repository: |
<repositories> <repository> <id>apache opennlp snapshot</id> <url>https://repository.apache.org/content/repositories/snapshots/</url> </repository></repositories>