Skip to content

#1662 - Upgrade to OpenNLP 3.0.0 - #1663

Merged
reckart merged 2 commits into
mainfrom
refactoring/1662-Upgrade-to-OpenNLP-3.0.0
Nov 24, 2026
Merged

reckart merged 2 commits into
mainfrom
refactoring/1662-Upgrade-to-OpenNLP-3.0.0

Conversation

@reckart

@reckart reckart commented Nov 18, 2026

Copy link
Copy Markdown
Member

What's in the PR

  • Upgrade OpenNLP 2.5.12 -> 3.0.0
  • Replace the single opennlp-tools dependency with the split OpenNLP 3 modules (api, runtime, ml-commons, ml-maxent, ml-perceptron, ml-bayes) and manage their versions explicitly
  • Whitelist the OpenNLP ML modules as used dependencies for the dependency analysis
  • Replace the removed GISTrainer.MAXENT_VALUE constant with the literal "MAXENT" in the trainers and use AlgorithmType.MAXENT in the NER trainer test and its javadoc
  • Add OpenNLP UAX [TreeTagger] Problem if TreeTagger does not generate a POS or lemma #29 word segmenter, covered by the shared segmenter test harness
  • Add OpenNLP stop word remover using the stop word lists bundled with OpenNLP
  • Add OpenNLP Hunspell stemmer
  • Add OpenNLP dependency parser and trainer supporting MaxEnt and feed-forward models
  • Fix OpenNLP Snowball stemmer ignoring the language parameter
  • Add MIME type for OpenNLP dependency parser models
  • Add slf4j-api dependency to the OpenNLP module
  • Add test fixtures for a Hunspell dictionary and a custom stop word list

How to test manually

  • No specific test procedure

Automatic testing

  • PR includes unit tests

Documentation

  • PR updates documentation

- Upgrade OpenNLP 2.5.12 -> 3.0.0
- Replace the single opennlp-tools dependency with the split OpenNLP 3 modules (api, runtime, ml-commons, ml-maxent, ml-perceptron, ml-bayes) and manage their versions explicitly
- Whitelist the OpenNLP ML modules as used dependencies for the dependency analysis
- Replace the removed GISTrainer.MAXENT_VALUE constant with the literal "MAXENT" in the trainers and use AlgorithmType.MAXENT in the NER trainer test and its javadoc
- Add OpenNLP UAX #29 word segmenter, covered by the shared segmenter test harness
- Add OpenNLP stop word remover using the stop word lists bundled with OpenNLP
- Add OpenNLP Hunspell stemmer
- Add OpenNLP dependency parser and trainer supporting MaxEnt and feed-forward models
- Fix OpenNLP Snowball stemmer ignoring the language parameter
- Add MIME type for OpenNLP dependency parser models
- Add slf4j-api dependency to the OpenNLP module
- Add test fixtures for a Hunspell dictionary and a custom stop word list
@reckart reckart added this to the 3.0.0 milestone Nov 18, 2026
@reckart reckart self-assigned this Nov 18, 2026
@reckart reckart added ⭐️ Enhancement New feature or request Module-opennlp labels Nov 18, 2026
@reckart reckart added this to Kanban Nov 18, 2026
@github-project-automation github-project-automation Bot moved this to In progress in Kanban Nov 18, 2026
@reckart
reckart merged commit 24b505d into main Nov 24, 2026
5 checks passed
@reckart
reckart deleted the refactoring/1662-Upgrade-to-OpenNLP-3.0.0 branch November 24, 2026 07:29
@github-project-automation github-project-automation Bot moved this from In progress to Done in Kanban Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant