This is an automated email from the ASF dual-hosted git repository.
krickert pushed a change to branch OPENNLP-1870
in repository https://gitbox.apache.org/repos/asf/opennlp.git
from a948317e5 OPENNLP-1870: Read the fold table through the Direction
accessor in the annotation audit
add 12cf565b9 OPENNLP-1870: Condense emoji annotation javadoc and add a
mirror-tested example
add 11daa83e7 OPENNLP-1870: Pin the documented emoji values in the usage
example test
add 701e870e6 OPENNLP-1870: Fold the emoji test code-point helper into a
shared utility
add 7e1aa6986 OPENNLP-1870: Address review: unify emoji feature names,
tighten commentary and constants
add 33285b4b5 OPENNLP-1870: Encapsulate emoji feature emission behind
EmojiAnnotator.collectFeatures
No new revisions were added by this update.
Summary of changes:
.../tools/doccat/EmojiFeatureGenerator.java | 27 ++----
.../sentiment/EmojiSentimentContextGenerator.java | 54 ++++++-----
.../tools/sentiment/EmojiSentimentFactory.java | 8 ++
.../EmojiAnnotationFeatureGenerator.java | 35 ++-----
.../EmojiAnnotationFeatureGeneratorFactory.java | 8 ++
.../tools/util/normalizer/EmojiAnnotation.java | 3 -
.../tools/util/normalizer/EmojiAnnotationJoin.java | 11 +--
.../tools/util/normalizer/EmojiAnnotations.java | 59 +++++-------
.../tools/util/normalizer/EmojiAnnotator.java | 101 ++++++++++++++-------
.../opennlp/tools/util/normalizer/EmojiFlags.java | 24 ++++-
.../tools/util/normalizer/emoji-annotations.txt | 33 +++----
.../tools/doccat/EmojiFeatureGeneratorTest.java | 15 +--
.../EmojiSentimentContextGeneratorTest.java | 11 +--
.../EmojiAnnotationFeatureGeneratorTest.java | 23 ++---
.../util/normalizer/EmojiAnnotationsTest.java | 86 +++++++-----------
.../tools/util/normalizer/EmojiAnnotatorTest.java | 36 ++++----
.../normalizer/EmojiAnnotatorUsageExampleTest.java | 65 +++++++++++++
.../tools/util/normalizer/EmojiFlagsTest.java | 77 +++++++---------
.../tools/util/normalizer/NormalizerTestUtil.java | 29 +++---
opennlp-distr/src/main/readme/LICENSE | 5 +-
opennlp-docs/src/docbkx/normalizer.xml | 3 +-
21 files changed, 372 insertions(+), 341 deletions(-)
create mode 100644
opennlp-core/opennlp-runtime/src/test/java/opennlp/tools/util/normalizer/EmojiAnnotatorUsageExampleTest.java
copy
opennlp-api/src/main/java/opennlp/tools/util/normalizer/CharSequenceNormalizer.java
=>
opennlp-core/opennlp-runtime/src/test/java/opennlp/tools/util/normalizer/NormalizerTestUtil.java
(57%)