Package com.cobber.fta.text
Enum Class TextProcessor.Determination
- All Implemented Interfaces:
Serializable
,Comparable<TextProcessor.Determination>
,Constable
- Enclosing class:
- TextProcessor
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAverage length of words does not look reasonable.We need some real looking words.Input looks like free text.The percentage of alphas, wordBreaks, punctuation(,.) and any digits in digit only words is too low.Sentence is too short.Input just has a single word.Detected word that is unreasonably long. -
Method Summary
Modifier and TypeMethodDescriptionstatic TextProcessor.Determination
Returns the enum constant of this class with the specified name.static TextProcessor.Determination[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OK
Input looks like free text. -
BAD_AVERAGE_LENGTH
Average length of words does not look reasonable. -
NOT_ENOUGH_REAL_WORDS
We need some real looking words. -
PERCENT_TOO_LOW
The percentage of alphas, wordBreaks, punctuation(,.) and any digits in digit only words is too low. -
SENTENCE_TOO_SHORT
Sentence is too short. -
SINGLE_WORD
Input just has a single word. -
TOO_LONG
Detected word that is unreasonably long.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-