Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/apache/opennlp
Apache OpenNLP
https://github.com/apache/opennlp
apache compling languagetechnology nlp opennlp textprocessing
Last synced: 5 days ago
JSON representation
Apache OpenNLP
- Host: GitHub
- URL: https://github.com/apache/opennlp
- Owner: apache
- License: apache-2.0
- Created: 2011-11-09T08:00:09.000Z (about 13 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T10:40:32.000Z (2 months ago)
- Last Synced: 2024-10-29T11:07:07.128Z (2 months ago)
- Topics: apache, compling, languagetechnology, nlp, opennlp, textprocessing
- Language: Java
- Homepage: https://opennlp.apache.org/
- Size: 16.5 MB
- Stars: 1,435
- Watchers: 90
- Forks: 449
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-chinese-ner - opennlp
- my-awesome - apache/opennlp - 12 star:1.5k fork:0.5k Apache OpenNLP (Java)
- low-resource-languages - OpenNLP - The Apache OpenNLP library is a machine learning based toolkit for the processing of natural language text. [Website](https://opennlp.apache.org). (Software / Utilities)
README
Welcome to Apache OpenNLP!
===========[![GitHub license](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://raw.githubusercontent.com/apache/opennlp/main/LICENSE)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.apache.opennlp/opennlp/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.apache.opennlp/opennlp)
[![Documentation Status](https://img.shields.io/:docs-latest-green.svg)](http://opennlp.apache.org/docs/index.html)
[![Build Status](https://github.com/apache/opennlp/workflows/Java%20CI/badge.svg)](https://github.com/apache/opennlp/actions)
[![Contributors](https://img.shields.io/github/contributors/apache/opennlp)](https://github.com/apache/opennlp/graphs/contributors)
[![GitHub pull requests](https://img.shields.io/github/issues-pr-raw/apache/opennlp.svg)](https://github.com/apache/opennlp/pulls)
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/apache/opennlp/badge)](https://api.securityscorecards.dev/projects/github.com/apache/opennlp)The Apache OpenNLP library is a machine learning based toolkit for the processing of natural language text.
This toolkit is written completely in Java and provides support for common NLP tasks, such as tokenization,
sentence segmentation, part-of-speech tagging, named entity extraction, chunking, parsing,
coreference resolution, language detection and more!These tasks are usually required to build more advanced text processing services.
The goal of the OpenNLP project is to be a mature toolkit for the above mentioned tasks.
An additional goal is to provide a large number of pre-built models for a variety of languages, as
well as the annotated text resources that those models are derived from.Presently, OpenNLP includes common classifiers such as Maximum Entropy, Perceptron and Naive Bayes.
OpenNLP can be used both programmatically through its Java API or from a terminal through its CLI.
OpenNLP API can be easily plugged into distributed streaming data pipelines like Apache Flink, Apache NiFi, Apache Spark.## Useful Links
For additional information, visit the [OpenNLP Home Page](http://opennlp.apache.org/)You can use OpenNLP with any language, demo models are provided [here](https://downloads.apache.org/opennlp/models/).
The models are fully compatible with the latest release, they can be used for testing or getting started.
> [!NOTE]
> Please train your own models for all other use cases.Documentation, including JavaDocs, code usage and command-line interface examples are available [here](http://opennlp.apache.org/docs/)
For recent news, updates and topics, you can:
- join the regular [mailing lists](http://opennlp.apache.org/mailing-lists.html),
- follow the project's [![Bluesky](https://img.shields.io/badge/Bluesky-0285FF?logo=bluesky&logoColor=fff)](https://bsky.app/profile/apacheopennlp.bsky.social) social media channel, or
- join the [![Slack](https://img.shields.io/badge/Slack-4A154B?logo=slack&logoColor=fff)](https://the-asf.slack.com) channel (available to people with an [email protected]_ email address or upon invitation).Please, also check the [![Stack Overflow](https://img.shields.io/badge/-Stack%20Overflow-FE7A16?logo=stack-overflow&logoColor=white)](https://stackoverflow.com/questions/tagged/opennlp) community's OpenNLP questions and answers.
## Overview
Currently, the library has different packages:
* `opennlp-tools` : The core toolkit.
* `opennlp-tools-models` : A set of classes to load [OpenNLP models](https://github.com/apache/opennlp-models) from the classpath.
* `opennlp-uima` : A set of [Apache UIMA](https://uima.apache.org) annotators.
* `opennlp-morfologik-addon` : An addon for Morfologik
* `opennlp-dl` : OpenNLP interface implementations for ONNX models using the `onnxruntime` dependency.
* `opennlp-dl-gpu` : Replaces `onnxruntime` with the `onnxruntime_gpu` dependency to support GPU acceleration.
* `opennlp-sandbox`: Other projects in progress are found in the [sandbox](https://github.com/apache/opennlp-sandbox)## Getting Started
You can import the core toolkit directly from Maven, SBT or Gradle:
#### Maven
```
org.apache.opennlp
opennlp-tools
${opennlp.version}```
#### SBT
```
libraryDependencies += "org.apache.opennlp" % "opennlp-tools" % "${opennlp.version}"
```#### Gradle
```
compile group: "org.apache.opennlp", name: "opennlp-tools", version: "${opennlp.version}"
```For more details please check our [documentation](http://opennlp.apache.org/docs/)
## Building OpenNLP
At least JDK 17 and Maven 3.3.9 are required to build the library.
After cloning the repository go into the destination directory and run:
```
mvn install
```## Contributing
The Apache OpenNLP project is developed by volunteers and is always looking for new contributors to work on all parts of the project. Every contribution is welcome and needed to make it better. A contribution can be anything from a small documentation typo fix to a new component.
If you would like to get involved please follow the instructions [here](https://github.com/apache/opennlp/blob/main/.github/CONTRIBUTING.md)