Registry / utility / opennlp-tools

opennlp-tools

JSON →
library2.5.9javamavenunverified

Machine learning toolkit for natural language processing tasks like tokenization, sentence detection, and named entity recognition.

<dependency> <groupId>org.apache.opennlp</groupId> <artifactId>opennlp-tools</artifactId> <version>2.5.9</version> </dependency>
INSTALL
IMPORT
SIG · OPENNLP-TOOLS
O
opennlp-tools
utilityjavav2.5.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SimpleTokenizer
opennlp.tools.tokenize.SimpleTokenizer

Tokenizes a sentence using the simple whitespace-based tokenizer.

import opennlp.tools.tokenize.SimpleTokenizer; public class Example { public static void main(String[] args) { SimpleTokenizer tokenizer = SimpleTokenizer.INSTANCE; String[] tokens = tokenizer.tokenize("Hello, world!"); for (String t : tokens) System.out.println(t); } }
Debug
Known issues
breakingOpenNLP 2.x uses different model formats than 1.x; models are not interchangeable.
fix
Download models compatible with OpenNLP 2.x from the official site.
affects: 2.0.0+
Upgrade
Version history
2.5.9latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
opennlp-tools — mvn dependency:get opennlp-tools · libregistry