You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by GitBox <gi...@apache.org> on 2026/09/01 02:59:58 UTC
[GH] (opennlp/2.x-OPENNLP-1904): Workflow run "Java CI" failed!
The GitHub Actions job "Java CI" on opennlp.git/2.x-OPENNLP-1904 has failed.
Run started by GitHub user krickert (triggered by krickert).
Head commit for run:
8e5b67180966717105598226d5126783abe6eb58 / Kristian Rickert <kr...@gmail.com>
[2.x] OPENNLP-1904: Default-locale case folding corrupts lemmatizer models and output
* OPENNLP-1904: Fix default-locale case folding in the lemmatizers
getShortestEditScript folded both the word form and the lemma with the JVM
default locale. Those folded strings become the shortest-edit-script labels that
encodeLemmas writes into a trained model, and decodeLemmas folds again with
Locale.ROOT rather than the project's own StringUtil.toLowerCase. The latter maps
code points through Character.toLowerCase, which is context free and disagrees
with String.toLowerCase(Locale.ROOT) on context sensitive mappings such as Greek
final sigma and on one to many mappings such as the sharp s. Every shipped model
was produced on an English locale JVM, whose fold is byte identical to
Locale.ROOT, so this keeps existing models working unchanged. The code point fold
would silently alter them. StringUtilLocaleTest carries a guard that fails if
someone later switches to the code point fold for consistency.
No model regeneration is required.
Backport of #1206 to opennlp-2.x. The tests build the Turkish locale with the Locale constructor, since 2.x targets Java 17 and Locale.of arrived in 19; TrainingParameters keeps its 2.x shape with root-locale lowercasing.
Report URL: https://github.com/apache/opennlp/actions/runs/33464547935
With regards,
GitHub Actions via GitBox