Nothing Special   »   [go: up one dir, main page]

Fork me on GitHub

Maven Integration

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.

Latest Release

OpenNLP Tools Dependency

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>

OpenNLP Tools Models 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>

OpenNLP DL 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>

OpenNLP DL GPU 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>

OpenNLP UIMA Annotators 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>

OpenNLP Morfologik AddOn 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>

SNAPSHOTS

OpenNLP Tools SNAPSHOT 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>