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.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.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 fromfromFile(java.nio.file.Path, java.lang.String)).