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.3.2'
}

OpenNLP DL Dependency

To use the OpenNLP DL define the following dependency:

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

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.3.2'
}

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.3.2'
}

OpenNLP Brat Annotator Dependency

To use the OpenNLP UIMA Annotators define the following dependency:

dependencies {
  implementation group: 'org.apache.opennlp', name: 'opennlp-brat-annotator', version: '2.3.2'
}

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.2.1-SNAPSHOT'
}
Note
The SNAPSHOT dependency requires the following Maven repository in your Gradle project:
https://repository.apache.org/content/repositories/snapshots/