|
Carrot2 v3.5.2
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.text.analysis.TokenTypeUtils
public final class TokenTypeUtils
Utility methods for working with ITokenizer attributes.
| Method Summary | |
|---|---|
static boolean |
isCommon(int flag)
Return true if ITokenizer.TF_COMMON_WORD is set. |
static boolean |
isDocumentSeparator(int type)
Returns true if the given type has ITokenizer.TF_SEPARATOR_DOCUMENT set. |
static boolean |
isFieldSeparator(int type)
Returns true if the given type has ITokenizer.TF_SEPARATOR_FIELD set. |
static boolean |
isInQuery(int flag)
Return true if ITokenizer.TF_QUERY_WORD is set. |
static boolean |
isTerminator(int type)
Returns true if the given type has ITokenizer.TF_TERMINATOR set. |
static int |
maskType(int rawType)
Mask the given raw token type and leave just the token type bits. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int maskType(int rawType)
public static boolean isDocumentSeparator(int type)
true if the given type has ITokenizer.TF_SEPARATOR_DOCUMENT set.
public static boolean isFieldSeparator(int type)
true if the given type has ITokenizer.TF_SEPARATOR_FIELD set.
public static boolean isTerminator(int type)
true if the given type has ITokenizer.TF_TERMINATOR set.
public static boolean isCommon(int flag)
true if ITokenizer.TF_COMMON_WORD is set.
public static boolean isInQuery(int flag)
true if ITokenizer.TF_QUERY_WORD is set.
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||