apache/opennlp
Apache OpenNLP
What it solves
Developers need to process natural language text in Java-based applications. Apache OpenNLP provides a toolkit that handles common NLP tasks—like tokenization, sentence segmentation, part-of-speech tagging, named entity extraction, chunking, parsing, coreference resolution, language detection, and stopword filtering—so you don't have to build these from scratch.
How it works
OpenNLP is written entirely in Java. It uses machine learning models for these tasks and includes implementations of several classifiers: Maximum Entropy, Perceptron, Naive Bayes, and Support Vector Machines. You can use it programmatically through its Java API or from the terminal via its command-line interface. The library is modularized (since version 3.x), letting you import only the components you need. It also provides pre-built models for a variety of languages, and can be plugged into distributed data pipelines like Apache Flink, NiFi, or Spark.
Who it’s for
This is for Java developers building applications that need text processing—for example, information extraction, search, or language understanding features. It's also for researchers or teams who want to train custom NLP models using the provided CLI tools.
Highlights
- Supports a wide range of NLP tasks: tokenization, sentence segmentation, part-of-speech tagging, named entity extraction, chunking, parsing, coreference resolution, language detection, and stopword filtering.
- Includes multiple machine learning implementations: Maximum Entropy, Perceptron, Naive Bayes, and Support Vector Machines.
- Provides both a Java API and a command-line interface for training, evaluating, and running models.
- Modular architecture (3.x) allows dependency-light usage.
- Bundled stopword lists for 11 languages.
- Pre-built models are available for many languages, with instructions to train your own for production use.
Related
- Project
- Project
- Project
- Project
- Project