Uses of Class
opennlp.tools.util.normalizer.CodePointSet
Packages that use CodePointSet
-
Uses of CodePointSet in opennlp.tools.util.normalizer
Methods in opennlp.tools.util.normalizer that return CodePointSetModifier and TypeMethodDescriptionstatic CodePointSetLoads the code points declared under one section of a user definitions file.static CodePointSetUnicodeWhitespace.lineBreakCodePointSet()Returns theCodePointSetof whitespace characters that force a line or paragraph break.CharClass.members()Returns the member code points of this class.static CodePointSetCodePointSet.of(int... codePoints) Creates a set from explicit code points.static CodePointSetCodePointSet.ofRange(int firstInclusive, int lastInclusive) Creates a set covering an inclusive code point range.CodePointSet.union(CodePointSet other) Returns a new set containing every code point in this set orother.Methods in opennlp.tools.util.normalizer with parameters of type CodePointSetModifier and TypeMethodDescriptionCharClass.collapseParagraphPreserving(CharSequence text, CodePointSet lineBreaks, int paragraphReplacement) Collapses runs of members likeCharClass.collapse(CharSequence), but emitsparagraphReplacementwhen a run contains two or more logical line breaks, or the usualreplacementwhen it contains at most one.CharClass.collapseParagraphPreservingAligned(CharSequence text, CodePointSet lineBreaks, int paragraphReplacement) LikeCharClass.collapseParagraphPreserving(CharSequence, CodePointSet, int)but also produces theAlignmentback to the original text.CharClass.collapsePreserving(CharSequence text, CodePointSet keep, int keepReplacement) Collapses runs of members likeCharClass.collapse(CharSequence), but emitskeepReplacementinstead of the usual replacement for any run that contains a code point inkeep.CharClass.collapsePreservingAligned(CharSequence text, CodePointSet keep, int keepReplacement) LikeCharClass.collapsePreserving(CharSequence, CodePointSet, int)but also produces theAlignmentback to the original text.static CharClassCharClass.of(CodePointSet members, int replacement) Creates a class from a member set and a replacement code point.CodePointSet.union(CodePointSet other) Returns a new set containing every code point in this set orother.CharClass.withAdditional(CodePointSet extra) Returns a copy of this class whose member set is extended withextra(for example, user-defined code points loaded fromCodePointSet.fromFile(Path, String)).