public enum TdbSegmentationType extends java.lang.Enum<TdbSegmentationType>
Enum Constant and Description |
---|
AllTokens
The segmentation algorithm will emit all
possible segments for a String of Chinese characters.
|
MaxLengthOnly
The segmentation algorithm will attempt to
match only the longest possible segment (String) of characters.
|
None
No special word segmentation is performed,
each character is indexed as a word in its own right; this is the default
behavior and reflects historical TRIP behavior.
|
Word
This segmentation algorith is similar to MaxLengthOnly and adds
re-segmentation of all words longer than three Chinese characters.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Return the TRIPxpi protocol name for the current identifier
|
static TdbSegmentationType |
getTypeof(java.lang.String name)
Retrieve the type ID that matches the provided name
|
static TdbSegmentationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TdbSegmentationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TdbSegmentationType None
public static final TdbSegmentationType MaxLengthOnly
public static final TdbSegmentationType Word
public static final TdbSegmentationType AllTokens
MaxLengthOnly
but has much lower potential for missing
terms.public static TdbSegmentationType[] values()
for (TdbSegmentationType c : TdbSegmentationType.values()) System.out.println(c);
public static TdbSegmentationType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static TdbSegmentationType getTypeof(java.lang.String name)
name
- The name to matchpublic java.lang.String getName()