Package opennlp.tools.util.normalizer


package opennlp.tools.util.normalizer
  • Class
    Description
    A CharSequenceNormalizer that folds diacritics for matching, the multilingual-safe counterpart to a Latin-only ASCII folding filter.
    A CharSequenceNormalizer implementation that aggregates the functionality of other normalizers.
    A CharSequenceNormalizer that replaces unambiguous list-bullet characters with a space, so a bullet acts as a token separator rather than sticking to the following word.
    A CharSequenceNormalizer that lower cases text for case-insensitive matching.
    Computes the Unicode confusable skeleton of text, following the skeleton algorithm defined in UTS #39 (Unicode Security Mechanisms).
    A CharSequenceNormalizer that reduces text to its Unicode confusable skeleton (UTS #39).
    A CharSequenceNormalizer that maps every Unicode dash to an ASCII hyphen-minus (U+002D), reusing the cursor based CharClass.dashes() engine.
    A CharSequenceNormalizer that maps Unicode decimal digits to their ASCII equivalents, so for example Arabic-Indic, Devanagari, or fullwidth digits all become 0-9.
    A layer of the Term normalization stack, in increasing order of aggressiveness.
    A CharSequenceNormalizer that expands the ellipsis and leader characters to ASCII dots: the horizontal ellipsis (U+2026) to "..." and the two-dot leader (U+2025) to "..".
    The annotation record of one emoji: an extensible per-symbol store of attribute values, each carrying its own provenance.
    One attribute value with its provenance, mirroring one row of the bundled data file.
    The joined-facts layer of the emoji annotation record store: a hook through which facts that live in user-installed data, typically a gazetteer (coordinates, containment chain, GeoNames or Who's On First identifiers), are resolved at run time and merged into an EmojiAnnotation.
    The bundled-facts layer of the emoji annotation record store: license-clean, provenance-tagged attributes intrinsic to a pictograph (name, coarse sentiment, entity type, document category), loaded once from the project-authored emoji-annotations.txt resource.
    Assembles one EmojiAnnotation per symbol from bundled facts (EmojiAnnotations), derived facts (EmojiFlags), and optional joined facts (EmojiAnnotationJoin).
    The document-category hint of an annotated emoji, one constant per group header of the upstream Unicode emoji-test.txt (Emoji Keyboard/Display Test Data for UTS #51).
    Deprecated, for removal: This API element is subject to removal in a future version.
    Replaces every supplementary-plane code point with a space, not only emoji.
    The coarse entity type of an annotated emoji, a small project-authored taxonomy assigned from the subgroup headers of the upstream Unicode emoji-test.txt (Emoji Keyboard/Display Test Data for UTS #51): for example the face-smiling and face-concerned subgroups map to EmojiEntityType.FACE and transport-ground maps to EmojiEntityType.VEHICLE.
    The derived-facts layer of the emoji annotation record store: decodes flag emoji to ISO 3166 codes purely from the code point sequence, with no data file.
    A CharSequenceNormalizer that folds emoji to ASCII emoticons, using the bundled emoji-emoticons.txt mapping (for example U+1F642 SLIGHTLY SMILING FACE to :)).
    A CharSequenceNormalizer that folds ASCII emoticons to emoji, using the bundled emoji-emoticons.txt mapping (for example :-) to U+1F642 SLIGHTLY SMILING FACE).
    A CharSequenceNormalizer that applies Unicode full case folding for case-insensitive matching, as defined by the Default Case Algorithms in Section 3.13 of the Unicode Standard, using the bundled CaseFolding.txt data of the Unicode Character Database.
    A CharSequenceNormalizer that transliterates German umlauts and the eszett the way German conventionally expands them (DIN 5007-2): a-umlaut to ae, o-umlaut to oe, u-umlaut to ue, and eszett to ss, with the capital umlauts and the capital eszett (U+1E9E) expanded likewise.
    A CharSequenceNormalizer that removes invisible format and bidirectional control characters that add no textual content and are a common source of noise and spoofing (the byte-order mark, zero width space, word joiner, bidi marks/embeddings/overrides/isolates, the invisible math operators, soft hyphen, and the Arabic letter mark).
    An OffsetAwareNormalizer that collapses runs of Unicode whitespace like WhitespaceCharSequenceNormalizer, but keeps line and paragraph structure: any whitespace run that contains a line break collapses to a single newline (U+000A) instead of a space, and leading and trailing whitespace is trimmed.
    A CharSequenceNormalizer that applies Unicode Normalization Form C (canonical composition, UAX #15).
    A CharSequenceNormalizer that applies Unicode Normalization Form KC (compatibility composition, UAX #15).
    Per-language normalization settings, mirroring how OpenNLP already selects a Snowball stemmer by language.
    A registry of NormalizationProfiles by language, with detection-based fallback.
    A CharSequenceNormalizer implementation that normalizes text in terms of numbers: every maximal run of ASCII digits (0 to 9), that is the longest unbroken stretch of consecutive digits, is replaced by a single space.
    A CharSequenceNormalizer that folds typographic quotation marks to their ASCII forms: the single quotes and apostrophes to ' and the double quotes to ".
    A CharSequenceNormalizer implementation that shrinks repeated whitespace and repeated characters in text, in three steps: Each run of two or more ASCII whitespace characters (tab, line feed, vertical tab, form feed, carriage return, or space) collapses to a single space.
    A CharSequenceNormalizer implementation that normalizes social media text: hashtags, user handles, retweet markers, emoticons, and repeated laughter.
    One token as a stack of normalization layers.
    Builds Terms by segmenting text and applying a configured stack of normalization Dimensions to each token.
    A builder for TermAnalyzer.
    Entry point for composing normalization steps into a single CharSequenceNormalizer.
    A fluent builder that appends normalization steps in order and composes them into one CharSequenceNormalizer via TextNormalizer.Builder.build().
    A CharSequenceNormalizer implementation that normalizes text in terms of URls and email addresses.
    A CharSequenceNormalizer that collapses each run of Unicode whitespace to a single ASCII space and trims the edges, reusing the cursor based CharClass.whitespace() engine.