Fork me on GitHub

Gradle 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 Gradle 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:

dependencies {
  implementation group: 'org.apache.opennlp', name: 'opennlp-tools', version: '2.5.1'
}

OpenNLP Tools Models Dependency

To use the OpenNLP Tools Models define the following dependency:

dependencies {
  implementation group: 'org.apache.opennlp', name: 'opennlp-tools-models', version: '2.5.1'
}

OpenNLP DL Dependency

To use the OpenNLP DL define the following dependency:

dependencies {
  implementation group: 'org.apache.opennlp', name: 'opennlp-dl', version: '2.5.1'
}

OpenNLP DL GPU Dependency

To use the OpenNLP DL GPU define the following dependency:

dependencies {
  implementation group: 'org.apache.opennlp', name: 'opennlp-dl-gpu', version: '2.5.1'
}

OpenNLP UIMA Annotators Dependency

To use the OpenNLP UIMA Annotators define the following dependency:

dependencies {
  implementation group: 'org.apache.opennlp', name: 'opennlp-uima', version: '2.5.1'
}

OpenNLP Morfologik AddOn Dependency

To use the OpenNLP Morfologik-Addon define the following dependency:

dependencies {
  implementation group: 'org.apache.opennlp', name: 'opennlp-morfologik-addon', version: '2.5.1'
}

SNAPSHOTS

OpenNLP Tools SNAPSHOT Dependency

To use the current version of the main branch define the following dependency:

dependencies {
  implementation group: 'org.apache.opennlp', name: 'opennlp-tools', version: '2.5.1-SNAPSHOT'
}
Note
All SNAPSHOT dependencies require the following Maven repository:
https://repository.apache.org/content/repositories/snapshots/