Enum SplitFunctionTokenizer.SplitResult
java.lang.Object
java.lang.Enum<SplitFunctionTokenizer.SplitResult>
org.tribuo.util.tokens.impl.SplitFunctionTokenizer.SplitResult
- All Implemented Interfaces:
Serializable
,Comparable<SplitFunctionTokenizer.SplitResult>
,java.lang.constant.Constable
- Enclosing class:
SplitFunctionTokenizer
public static enum SplitFunctionTokenizer.SplitResult
extends Enum<SplitFunctionTokenizer.SplitResult>
A combination of a
SplitFunctionTokenizer.SplitType
and a Token.TokenType
. The TokenType of some
SplitResult values are ignored and so not every combination of SplitType and
TokenType is provided. For example, SplitFunctionTokenizer.SplitType.SPLIT_AT
and
SplitFunctionTokenizer.SplitType.SPLIT_BEFORE
(as described above) create tokens whose types have
already been determined.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static SplitFunctionTokenizer.SplitResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NO_SPLIT_WORD
-
NO_SPLIT_NGRAM
-
NO_SPLIT_PUNCTUATION
-
NO_SPLIT_WHITESPACE
-
NO_SPLIT_PREFIX
-
NO_SPLIT_SUFFIX
-
NO_SPLIT_INFIX
-
NO_SPLIT_UNKNOWN
-
SPLIT_AT
-
SPLIT_BEFORE
-
SPLIT_AFTER_WORD
-
SPLIT_AFTER_NGRAM
-
SPLIT_AFTER_PUNCTUATION
-
SPLIT_AFTER_WHITESPACE
-
SPLIT_AFTER_PREFIX
-
SPLIT_AFTER_SUFFIX
-
SPLIT_AFTER_INFIX
-
SPLIT_AFTER_UNKNOWN
-
SPLIT_BEFORE_AND_AFTER_WORD
-
SPLIT_BEFORE_AND_AFTER_NGRAM
-
SPLIT_BEFORE_AND_AFTER_PUNCTUATION
-
SPLIT_BEFORE_AND_AFTER_WHITESPACE
-
SPLIT_BEFORE_AND_AFTER_PREFIX
-
SPLIT_BEFORE_AND_AFTER_SUFFIX
-
SPLIT_BEFORE_AND_AFTER_INFIX
-
SPLIT_BEFORE_AND_AFTER_UNKNOWN
-
-
Field Details
-
splitType
-
tokenType
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-