The Apache OpenNLP team is pleased to announce the release of Apache OpenNLP 2.5.13.
The Apache OpenNLP library is a machine learning based toolkit for the processing of natural language text.
It supports the most common NLP tasks, such as tokenization, sentence segmentation, part-of-speech tagging, named entity extraction, chunking, parsing, and coreference resolution.
Apache OpenNLP 2.5.13 binary and source distributions are available for download from our download page.
The OpenNLP library is distributed by Maven Central as well. See the Maven dependency page for more details.
This is a maintenance release on the 2.x line. It requires Java 17 and backports bug fixes and thread-safety improvements from the 3.x line.
Thread safety: TokenizerME no longer changes the shared WhitespaceTokenizer.INSTANCE, and MorfologikTagDictionary, AbstractModel and AbstractClassPathModelFinder.findModels can be shared between threads.
Deep learning: SentenceVectorsDL runs on a GPU, DocumentCategorizerDL computes a numerically stable softmax, invalid document split options are rejected instead of looping forever, and close() can be called more than once.
Model downloads: DownloadUtil uses a local copy of the model index when the model host cannot be reached and verifies cached models against their SHA-512 checksum.
Format readers and data: the AD readers no longer hang at end of file or fail on the FlorestaVirgem corpus, the bundled Spanish head rules match tags with escaped dots, and MarkableFileInputStream and the Leipzig reader release their file handles.
BaseModel loads on Android, and StringUtil.toUpperCase maps supplementary-plane letters.
Release artifacts: the binary distribution LICENSE covers all bundled third-party code.
DownloadUtil stores the model index and a .sha512 file next to each downloaded model in the download directory. A cached model whose checksum does not match fails to load with an IOException.
DocumentCategorizerDL and NameFinderDL reject a document split size below 1, a negative overlap, or an overlap not smaller than the split size with IllegalArgumentException.
MorfologikTagDictionary.clearThreadLocalState() releases the dictionary lookup of the current thread.
Apache Parent POM 40
ClassGraph 5.0.2
ONNX Runtime 1.31.1
SLF4J 2.0.20
Maven 3.10.0 via the Maven Wrapper
For further details, check the full list of changes in the GitHub release notes, the changes since 2.5.12, or the JIRA release notes.
--The Apache OpenNLP Team
16 November 2026