Uses of Class
opennlp.tools.tokenize.MappedText
Packages that use MappedText
-
Uses of MappedText in opennlp.tools.tokenize
Methods in opennlp.tools.tokenize that return MappedTextModifier and TypeMethodDescriptionprivate MappedTextWordpieceEncoder.cleanAndIsolateCjk(String original) Removes BERT control characters, normalizes whitespace, and isolates CJK ideographs.private MappedTextWordpieceEncoder.decomposeByCodePoint(MappedText text) Canonically decomposes each code point while preserving the source range.(package private) static MappedTextBertNormalization.isolatePunctuation(MappedText in) Surrounds every punctuation character with spaces that map to an empty range at the character's start and end, so each punctuation character becomes its own token.private MappedTextWordpieceEncoder.lowerCaseAndStripAccents(MappedText in) Applies BERT lower casing and accent removal while retaining source ranges.private MappedTextWordpieceEncoder.lowerCaseRun(MappedText in, int from, int to) Lowercases one run and retains a source range for each result code point.Methods in opennlp.tools.tokenize with parameters of type MappedTextModifier and TypeMethodDescriptionprivate voidWordpieceEncoder.appendWithoutAccents(String text, int start, int end, MappedText out) Appends characters excluding non-spacing marks with one source range.private voidWordpieceEncoder.appendWithoutAccents(MappedText text, MappedText out) Appends mapped characters excluding non-spacing marks.private MappedTextWordpieceEncoder.decomposeByCodePoint(MappedText text) Canonically decomposes each code point while preserving the source range.private voidWordpieceEncoder.encodeWord(MappedText mapped, int from, int to, List<SubwordPiece> pieces) Appends the longest vocabulary segmentation of one normalized word.private booleanWordpieceEncoder.isFinalSigma(MappedText in, int from, int to, int index) Tests whether the capital sigma atindexis word-final.(package private) static MappedTextBertNormalization.isolatePunctuation(MappedText in) Surrounds every punctuation character with spaces that map to an empty range at the character's start and end, so each punctuation character becomes its own token.private MappedTextWordpieceEncoder.lowerCaseAndStripAccents(MappedText in) Applies BERT lower casing and accent removal while retaining source ranges.private MappedTextWordpieceEncoder.lowerCaseRun(MappedText in, int from, int to) Lowercases one run and retains a source range for each result code point.private voidWordpieceEncoder.transformRun(MappedText in, int from, int to, MappedText out) Normalizes one non-whitespace run and appends it to the output mapping.