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/10/01 19:40:45 UTC
[GH] (opennlp/main): Workflow run "Publish snapshot artifacts" is working again!
The GitHub Actions job "Publish snapshot artifacts" on opennlp.git/main has succeeded.
Run started by GitHub user rzo1 (triggered by rzo1).
Head commit for run:
ceb2bd880b3cd0a8a1dac8dd5de42c42ed4f57fd / Richard Zowalla <13...@users.noreply.github.com>
OPENNLP-1974: Normalize complete Unicode emoji sequences (#1313)
* OPENNLP-1974: Normalize complete Unicode emoji sequences
Use a code-point matcher and pinned Unicode Emoji 18 data. Preserve non-emoji text and malformed candidates. Document training and inference implications.
Red: 6 of 8 intended-behavior checks failed on the former implementation; 11 Emoji 18 cases failed with the Emoji 17 inventory. Green: 50 focused tests pass, including all 3963 bundled sequences.
* OPENNLP-1974: Include Unicode emoji license in runtime JAR
Append the Unicode V3 license and Emoji 18 source attribution to the runtime artifact metadata. Include the data license when the runtime JAR is distributed separately.
* OPENNLP-1974: Fix Unicode Emoji version in LanguageDetectorFactory Javadoc
Co-Authored-By: Claude Opus 5.5 (1M context) <no...@anthropic.com>
* OPENNLP-1974: Use Emoji 17.0 data for removal and preserve LEGACY output
Use Unicode Emoji 17.0 data for emoji removal: 3,944 sequences and 10
component ranges. Pin the release, source checksums and sequence count
in the generator. Load the data lazily and reject malformed entries.
Keep emoji next to stray joiners, modifiers, selectors, flag letters or
tags, and remove other complete emoji in the same run. Remove one extra
U+FE0F after a complete emoji with that emoji. Skip non-emoji text before
the trie lookup.
Preserve the old output under opennlp.compat.mode=LEGACY with a cursor
scan instead of regex. Compare it with the old pattern over 5,000
randomized inputs, and test the normalizer chain in both compatibility
modes.
Remove the class deprecation and use it in the default normalizer chain.
Document the behavior in Javadoc and the language detector chapter, and
update the runtime jar LICENSE and NOTICE for the bundled Unicode data.
Assisted-by: Claude Code 2.1.281
Co-authored-by: Kristian Rickert <kr...@apache.org>
Co-authored-by: Claude <no...@anthropic.com>
Reviewed-by: Kristian Rickert <kr...@apache.org>
Signed-off-by: Kristian Rickert <kr...@apache.org>
* OPENNLP-1974: Address review findings in the emoji normalizer
- Trie nodes keep sorted primitive arrays instead of HashMap<Integer, Node>,
so a lookup does not box.
- Lazy loading uses a holder class instead of double-checked locking.
- The normalizer checks the candidate start set before decoding a second time.
- Javadoc names the pre-3.0.0 regex once instead of "the former pattern".
- HexCodePoints no longer claims to be shared by the other data loaders.
- The generator reads each source file once and accepts a bare output name.
- The characterization tests are parameterized so a failing input is named.
- The docbook entry keeps two sentences in the table and moves the LEGACY note
below it.
* OPENNLP-1974: Parse hex code points of all normalizer data files with HexCodePoints
Confusables and EmojiAnnotations used their own Integer.parseInt(..., 16)
loops. They now use HexCodePoints like UnicodeEmojiSequences, so an out of
range code point fails with the line number instead of a bare exception
from appendCodePoint.
* OPENNLP-1974: Remove minimally-qualified emoji sequences as well
emoji-test.txt lists 1,029 minimally-qualified sequences, mostly gendered and
skin tone ZWJ sequences written without U+FE0F after a later element, such as
U+1F64B U+1F3FF U+200D U+2640. They were kept whole as malformed candidates.
The generator now keeps them next to the fully-qualified ones, so the
inventory holds 4,973 sequences. Unqualified sequences, whose first code
point lacks a needed U+FE0F, are still kept as text.
* OPENNLP-1974: Drop static from helpers that do not need it
- UnicodeEmojiSequences: adding a sequence is an instance method of the trie
node instead of a static helper taking the root.
- UnicodeEmojiSequenceGenerator: main creates an instance; the helpers are
instance methods.
- Tests: helpers called only from test methods are instance methods.
Factories (getInstance, load, parse), the HexCodePoints utility, JUnit
method sources and the helpers they call stay static.
* OPENNLP-1974: Test that hex code point sequences accept whitespace runs
The normalizer data loaders read code point sequences separated by any whitespace run,
with leading and trailing whitespace ignored, instead of single spaces only.
* OPENNLP-1974: Split hex code point sequences on whitespace runs
HexCodePoints tokenizes a sequence with StringUtil.splitOnUnicodeWhitespace, so the
confusables and annotation loaders and the emoji trie accept tabs and repeated spaces between
code points and ignore surrounding whitespace. The single space separator constant is gone.
The getInstance Javadoc of UnicodeEmojiSequences names the error the holder idiom produces.
---------
Signed-off-by: Kristian Rickert <kr...@apache.org>
Co-authored-by: Kristian Rickert <kr...@apache.org>
Co-authored-by: Claude Opus 5.5 (1M context) <no...@anthropic.com>
Report URL: https://github.com/apache/opennlp/actions/runs/36910621038
With regards,
GitHub Actions via GitBox