Uses of Interface
opennlp.tools.util.normalizer.CharSequenceNormalizer
Packages that use CharSequenceNormalizer
-
Uses of CharSequenceNormalizer in opennlp.tools.langdetect
Fields in opennlp.tools.langdetect declared as CharSequenceNormalizerModifier and TypeFieldDescriptionprotected final CharSequenceNormalizerDefaultLanguageDetectorContextGenerator.normalizerConstructors in opennlp.tools.langdetect with parameters of type CharSequenceNormalizerModifierConstructorDescriptionDefaultLanguageDetectorContextGenerator(int minLength, int maxLength, CharSequenceNormalizer... normalizers) Creates a customizableDefaultLanguageDetectorContextGeneratorthat computes ngrams from text. -
Uses of CharSequenceNormalizer in opennlp.tools.termvector
Fields in opennlp.tools.termvector declared as CharSequenceNormalizerModifier and TypeFieldDescriptionprivate final CharSequenceNormalizerTermVectorAnnotator.tokenNormalizerConstructors in opennlp.tools.termvector with parameters of type CharSequenceNormalizerModifierConstructorDescriptionTermVectorAnnotator(CharSequenceNormalizer normalizer) Initializes afull modeannotator that groups tokens by their per-token normalized form.TermVectorAnnotator(CharSequenceNormalizer normalizer, TermVectorAnnotator.Mode mode) Initializes an annotator that groups tokens by their per-token normalized form. -
Uses of CharSequenceNormalizer in opennlp.tools.util.normalizer
Subinterfaces of CharSequenceNormalizer in opennlp.tools.util.normalizerModifier and TypeInterfaceDescriptioninterfaceACharSequenceNormalizerthat can additionally report theAlignmentfrom its normalized output back to the input, so a span found in the normalized text maps to the exact character offsets of the original.Classes in opennlp.tools.util.normalizer that implement CharSequenceNormalizerModifier and TypeClassDescriptionclassACharSequenceNormalizerthat folds diacritics for matching, the multilingual-safe counterpart to a Latin-only ASCII folding filter.classACharSequenceNormalizerimplementation that aggregates the functionality of other normalizers.(package private) final classAnOffsetAwareNormalizerthat applies a chain of offset-aware normalizers in order and composes their per-stageAlignments withAlignment.andThen(Alignment), so the result maps a span found in the fully normalized text back to the original input through every stage.classACharSequenceNormalizerthat replaces unambiguous list-bullet characters with a space, so a bullet acts as a token separator rather than sticking to the following word.classACharSequenceNormalizerthat lower cases text for case-insensitive matching.classACharSequenceNormalizerthat reduces text to its Unicode confusable skeleton (UTS #39).classACharSequenceNormalizerthat maps every Unicode dash to an ASCII hyphen-minus (U+002D), reusing the cursor basedCharClass.dashes()engine.classACharSequenceNormalizerthat maps Unicode decimal digits to their ASCII equivalents, so for example Arabic-Indic, Devanagari, or fullwidth digits all become0-9.classACharSequenceNormalizerthat expands the ellipsis and leader characters to ASCII dots: the horizontal ellipsis (U+2026) to"..."and the two-dot leader (U+2025) to"..".classACharSequenceNormalizerimplementation that replaces each run of complete emoji with one space.final classACharSequenceNormalizerthat folds emoji to ASCII emoticons, using the bundledemoji-emoticons.txtmapping (for example U+1F642 SLIGHTLY SMILING FACE to:)).final classACharSequenceNormalizerthat folds ASCII emoticons to emoji, using the bundledemoji-emoticons.txtmapping (for example:-)to U+1F642 SLIGHTLY SMILING FACE).final classACharSequenceNormalizerthat 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 bundledCaseFolding.txtdata of the Unicode Character Database.classACharSequenceNormalizerthat transliterates German umlauts and the eszett the way German conventionally expands them (DIN 5007-2): a-umlaut toae, o-umlaut tooe, u-umlaut toue, and eszett toss, with the capital umlauts and the capital eszett (U+1E9E) expanded likewise.classACharSequenceNormalizerthat 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).classAnOffsetAwareNormalizerthat collapses runs of Unicode whitespace likeWhitespaceCharSequenceNormalizer, 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.classACharSequenceNormalizerthat applies Unicode Normalization Form C (canonical composition, UAX #15).classACharSequenceNormalizerthat applies Unicode Normalization Form KC (compatibility composition, UAX #15).classACharSequenceNormalizerimplementation that normalizes text in terms of numbers: every maximal run of ASCII digits (0to9), that is the longest unbroken stretch of consecutive digits, is replaced by a single space.classAnOffsetAwareNormalizerthat unwraps hard-wrapped prose while keeping real paragraph breaks.classACharSequenceNormalizerthat folds typographic quotation marks to their ASCII forms: the single quotes and apostrophes to'and the double quotes to".classACharSequenceNormalizerimplementation 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.classACharSequenceNormalizerimplementation that normalizes social media text: hashtags, user handles, retweet markers, emoticons, and repeated laughter.classACharSequenceNormalizerimplementation that replaces eachhttporhttpsURL and each email address with one space.classACharSequenceNormalizerthat collapses each run of Unicode whitespace to a single ASCII space and trims the edges, reusing the cursor basedCharClass.whitespace()engine.Fields in opennlp.tools.util.normalizer declared as CharSequenceNormalizerModifier and TypeFieldDescriptionprivate final CharSequenceNormalizerNormalizationProfile.accentFoldprivate final CharSequenceNormalizer[]AggregateCharSequenceNormalizer.normalizersFields in opennlp.tools.util.normalizer with type parameters of type CharSequenceNormalizerModifier and TypeFieldDescriptionprivate final Supplier<CharSequenceNormalizer> Dimension.defaultNormalizerprivate final List<CharSequenceNormalizer> TextNormalizer.Builder.stepsprivate final EnumMap<Dimension, CharSequenceNormalizer> TermAnalyzer.Builder.transformsprivate final EnumMap<Dimension, CharSequenceNormalizer> TermAnalyzer.transformsMethods in opennlp.tools.util.normalizer that return CharSequenceNormalizerModifier and TypeMethodDescriptionNormalizationProfile.accentFold()Returns the diacritic fold for the language, ornullfor none.TextNormalizer.Builder.build()Returns the composed normalizer for the steps added so far.static CharSequenceNormalizerTextNormalizer.defaultChain()Returns a conservative, ready-made normalization chain.Dimension.defaultNormalizer()Returns the default character-level normalizer for this dimension, ornullforDimension.ORIGINAL,Dimension.STEM, andDimension.LEMMA.Methods in opennlp.tools.util.normalizer with parameters of type CharSequenceNormalizerModifier and TypeMethodDescriptionprivate static voidNormalizationProfiles.add(Map<String, NormalizationProfile> map, String language, SnowballStemmer.ALGORITHM algorithm, CharSequenceNormalizer accentFold) private TextNormalizer.BuilderTextNormalizer.Builder.add(CharSequenceNormalizer normalizer) Appends a normalization step and returns this builder.TermAnalyzer.Builder.dash(CharSequenceNormalizer normalizer) EnablesDimension.DASHwith a specific normalizer (a custom dash set or target).TermAnalyzer.Builder.transform(Dimension dimension, CharSequenceNormalizer normalizer) Enables a character-level dimension with a specific normalizer, overriding its default (for example a locale-specific case fold for a language profile).TermAnalyzer.Builder.whitespace(CharSequenceNormalizer normalizer) EnablesDimension.WHITESPACEwith a specific normalizer, choosing the fold target and behavior.TextNormalizer.Builder.with(CharSequenceNormalizer custom) Appends a custom normalizer.Constructors in opennlp.tools.util.normalizer with parameters of type CharSequenceNormalizerModifierConstructorDescriptionAggregateCharSequenceNormalizer(CharSequenceNormalizer... normalizers) Creates an aggregate that applies the given normalizers in order.NormalizationProfile(String language, SnowballStemmer.ALGORITHM stemmerAlgorithm, CharSequenceNormalizer accentFold) Creates a profile.Constructor parameters in opennlp.tools.util.normalizer with type arguments of type CharSequenceNormalizerModifierConstructorDescriptionprivateDimension(Supplier<CharSequenceNormalizer> defaultNormalizer) Associates the dimension with its lazily resolved default normalizer, ornull.