# Uses of Class
opennlp.tools.util.normalizer.CodePointSet

Packages that use CodePointSet
Package
Description
opennlp.tools.util.normalizer

- ## Uses of CodePointSet in opennlp.tools.util.normalizer

  Methods in opennlp.tools.util.normalizer that return CodePointSet
  Modifier and Type
  Method
  Description
  `static CodePointSet`
  CodePointSet.`fromFile(Path definitions, String section)`
  Loads the code points declared under one section of a user definitions file.
  `CodePointSet`
  CharClass.`members()`
  Returns the member code points of this class.
  `static CodePointSet`
  CodePointSet.`of(int... codePoints)`
  Creates a set from explicit code points.
  `static CodePointSet`
  CodePointSet.`ofRange(int firstInclusive, int lastInclusive)`
  Creates a set covering an inclusive code point range.
  `CodePointSet`
  CodePointSet.`union(CodePointSet other)`
  Returns a new set containing every code point in this set or `other`.
  Methods in opennlp.tools.util.normalizer with parameters of type CodePointSet
  Modifier and Type
  Method
  Description
  `String`
  CharClass.`collapsePreserving(CharSequence text, CodePointSet keep, int keepReplacement)`
  Collapses runs of members like `CharClass.collapse(CharSequence)`, but emits `keepReplacement` instead of the usual replacement for any run that contains a code point in `keep`.
  `AlignedText`
  CharClass.`collapsePreservingAligned(CharSequence text, CodePointSet keep, int keepReplacement)`
  Like `CharClass.collapsePreserving(CharSequence, CodePointSet, int)` but also produces the `Alignment` back to the original text.
  `static CharClass`
  CharClass.`of(CodePointSet members, int replacement)`
  Creates a class from a member set and a replacement code point.
  `CodePointSet`
  CodePointSet.`union(CodePointSet other)`
  Returns a new set containing every code point in this set or `other`.
  `CharClass`
  CharClass.`withAdditional(CodePointSet extra)`
  Returns a copy of this class whose member set is extended with `extra` (for example, user-defined code points loaded from `fromFile(java.nio.file.Path, java.lang.String)`).