Uses of Class
opennlp.tools.util.normalizer.CodePointSet
Packages that use CodePointSet
Package
Description
-
Uses of CodePointSet in opennlp.tools.tokenize
Fields in opennlp.tools.tokenize declared as CodePointSetModifier and TypeFieldDescriptionprivate final CodePointSetTokenizerCharacterPolicy.digitsprivate final CodePointSetTokenizerCharacterPolicy.lettersprivate final CodePointSetTokenizerCharacterPolicy.marksMethods in opennlp.tools.tokenize that return CodePointSetModifier and TypeMethodDescriptionTokenizerCharacterPolicy.getDigits()Returns the immutable digit set.TokenizerCharacterPolicy.getLetters()Returns the immutable letter set.TokenizerCharacterPolicy.getMarks()Returns the immutable mark set.private static CodePointSetTokenizerCharacterPolicy.parseRange(String text, int from, int to) Reads one code point or one inclusive range intext[from, to).private static CodePointSetTokenizerCharacterPolicy.parseRanges(String text, int from, int to) Reads the comma separated code points and ranges intext[from, to).Methods in opennlp.tools.tokenize with parameters of type CodePointSetModifier and TypeMethodDescriptionprivate static voidTokenizerCharacterPolicy.appendRanges(StringBuilder text, CodePointSet set) Appends the members ofsetas comma separated code points and ranges.static TokenizerCharacterPolicyTokenizerCharacterPolicy.of(CodePointSet letters, CodePointSet digits, CodePointSet marks) Creates a policy from explicit, pairwise-disjoint code point sets.private static voidTokenizerCharacterPolicy.requireDisjoint(String firstName, CodePointSet first, String secondName, CodePointSet second) Throws iffirstandsecondshare a code point.private static voidTokenizerCharacterPolicy.validateSet(String name, CodePointSet set) Throws ifsetcontains a surrogate code point orUnicodeWhitespacemember.Constructors in opennlp.tools.tokenize with parameters of type CodePointSetModifierConstructorDescriptionprivateTokenizerCharacterPolicy(CodePointSet letters, CodePointSet digits, CodePointSet marks) -
Uses of CodePointSet in opennlp.tools.tokenize.lang
Fields in opennlp.tools.tokenize.lang declared as CodePointSet -
Uses of CodePointSet in opennlp.tools.util.normalizer
Fields in opennlp.tools.util.normalizer declared as CodePointSetModifier and TypeFieldDescription(package private) static final CodePointSetAsciiChars.ALPHANUMERICThe ASCII letters and digits.private static final CodePointSetUrlCharSequenceNormalizer.BODY_DELIMITERSDelimiters that end a URL body besides whitespace and control characters.private static final CodePointSetUnicodeEmojiSequences.KEYCAP_BASESThe bases of the keycap sequences:#,*and the ASCII digits.private static final CodePointSetUrlCharSequenceNormalizer.LEGACY_URL_BODYThe URL body set of the legacy output:[-_.?&~;+=/#0-9A-Za-z].private static final CodePointSetUnicodeWhitespace.LINE_BREAK_CODE_POINT_SETprivate static final CodePointSetLineBreakPreservingWhitespaceCharSequenceNormalizer.LINE_BREAKSprivate static final CodePointSetParagraphPreservingWhitespaceCharSequenceNormalizer.LINE_BREAKSprivate static final CodePointSetMailAddressScan.MAIL_DOMAINThe set a domain continues with:[-.0-9A-Za-z].private static final CodePointSetMailAddressScan.MAIL_DOMAIN_STARTThe set a domain may start with:[-0-9A-Za-z].private static final CodePointSetMailAddressScan.MAIL_LOCALThe mail local-part set, also the left-neighbor exclusion set:[-+_.0-9A-Za-z].private final CodePointSetCharClass.membersprivate static final CodePointSetUrlCharSequenceNormalizer.SCHEME_BODYThe characters a scheme continues with after its first letter, per RFC 3986.private static final CodePointSetUrlCharSequenceNormalizer.SCHEME_NEIGHBORSCode points that, before the scheme, make it part of a larger token.private static final CodePointSetUrlCharSequenceNormalizer.TRAILING_PUNCTUATIONPunctuation given back when it trails a URL.(package private) static final CodePointSetAsciiChars.WHITESPACEThe six ASCII whitespace characters: tab (U+0009), line feed (U+000A), vertical tab (U+000B), form feed (U+000C), carriage return (U+000D), and space (U+0020).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.(package private) static CodePointSetCodePointSet.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.private static booleanCharClass.containsAny(CharSequence text, int from, int to, CodePointSet set) Tests whether a code point ofsetoccurs in a range oftext.private intCharClass.countLogicalLineBreaks(CharSequence text, int runStart, int runEnd, CodePointSet lineBreaks) Counts logical line breaks in a whitespace run.static CharClassCharClass.of(CodePointSet members, int replacement) Creates a class from a member set and a replacement code point.private CharClass.RunReplacementCharClass.paragraphReplacement(CharSequence text, CodePointSet lineBreaks, int paragraphReplacement) Returns theCharClass.RunReplacementof thecollapseParagraphPreservingoperations:paragraphReplacementfor a run with two or more logical line breaks, the usual replacement otherwise.private CharClass.RunReplacementCharClass.preservingReplacement(CharSequence text, CodePointSet keep, int keepReplacement) Returns theCharClass.RunReplacementof thecollapsePreservingoperations:keepReplacementfor a run that contains akeepcode point, the usual replacement otherwise.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)).Constructors in opennlp.tools.util.normalizer with parameters of type CodePointSet