public class OutputFilter
extends java.lang.Object
History:
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
HEAD |
static int |
LOWERCASE |
static int |
NOT_DERIVATION
Enumerated type for not a derivation: for future use
|
static int |
PRESERVED_CASE
Enumerated type for output case
|
protected static java.lang.String |
TAIL |
static int |
UPPERCASE |
Constructor and Description |
---|
OutputFilter() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
ExecuteOutputFilter(java.util.Vector<LexItem> results,
boolean mutateFlag,
boolean detailsFlag,
java.lang.String separator,
java.lang.String originalTerm,
LvgOutputOption lvgOutputOption)
Execute the functions of output filter and print the result to the
LVG desinated outputs, screen ot a file.
|
static java.lang.String |
ExecuteOutputFilter(java.util.Vector<LexItem> results,
boolean mutateFlag,
boolean detailsFlag,
java.lang.String separator,
java.lang.String originalTerm,
java.lang.String inTerm,
LvgOutputOption lvgOutputOption)
Execute the functions of output filter and print the result to the
LVG desinated outputs, screen ot a file.
|
static LexItem |
GetEnhancedSimpleInflection(LexItem in)
Simplify an lexItem by dropping target inflections with value greater than
256 (positive) except for it's category is auxiliary or modal.
|
static java.util.Vector<LexItem> |
GetEnhancedSimpleInflection(java.util.Vector<LexItem> ins)
Simplify lexItems by dropping target inflections with value greater than
256 (positive) except for category is modal or auxiliary.
|
static LexItem |
GetSimpleInflection(LexItem in)
Simplify an lexItem by dropping target inflections with value greater than
256 (positive)
|
static java.util.Vector<LexItem> |
GetSimpleInflection(java.util.Vector<LexItem> ins)
Simplify lexItems by dropping target inflections with value greater than
256 (positive)
|
static boolean |
IsCategoryContainRec(LexItem in,
long category)
Checks if the category of an LexItem is contained in a specified category.
|
static boolean |
IsCategoryInflectionContainRec(LexItem in,
long category,
long inflection)
Checks if the category and inflection of an LexItem are contained in the
specified category and inflection.
|
static boolean |
IsRecContainCategory(LexItem in,
long category)
Checks if an LexItem contains a specified category.
|
static boolean |
IsRecContainCategoryInflection(LexItem in,
long category,
long inflection)
Checks if an LexItem contains specified category and inflection.
|
public static final int NOT_DERIVATION
public static final int PRESERVED_CASE
public static final int LOWERCASE
public static final int UPPERCASE
protected static final java.lang.String HEAD
protected static final java.lang.String TAIL
public static java.lang.String ExecuteOutputFilter(java.util.Vector<LexItem> results, boolean mutateFlag, boolean detailsFlag, java.lang.String separator, java.lang.String originalTerm, LvgOutputOption lvgOutputOption)
results
- Lvg output records before going through output filtermutateFlag
- a boolean flag for showing the result with mutate
informationdetailsFlag
- a boolean flag for showing the result with detail
information of flow operationseparator
- a replacement separator other than the Lvg default
separatororiginalTerm
- the original input term (the whole line).lvgOutputOption
- the lvg output filter option object.public static java.lang.String ExecuteOutputFilter(java.util.Vector<LexItem> results, boolean mutateFlag, boolean detailsFlag, java.lang.String separator, java.lang.String originalTerm, java.lang.String inTerm, LvgOutputOption lvgOutputOption)
results
- Lvg output records before going through output filtermutateFlag
- a boolean flag for showing the result with mutate
informationdetailsFlag
- a boolean flag for showing the result with detail
information of flow operationseparator
- a replacement separator other than the Lvg default
separatororiginalTerm
- the original input term (the whole line).inTerm
- the input term for lvg mutationlvgOutputOption
- the lvg output filter option object.public static java.util.Vector<LexItem> GetSimpleInflection(java.util.Vector<LexItem> ins)
ins
- a vector of LexItems to be simplifiedpublic static java.util.Vector<LexItem> GetEnhancedSimpleInflection(java.util.Vector<LexItem> ins)
ins
- a vector of LexItems to be simplifiedpublic static LexItem GetSimpleInflection(LexItem in)
in
- the LexItem to be simplifiedpublic static LexItem GetEnhancedSimpleInflection(LexItem in)
in
- the LexItem to be simplifiedpublic static boolean IsRecContainCategory(LexItem in, long category)
in
- the LexItem to be chekcedcategory
- the specified category in a long integer formatpublic static boolean IsCategoryContainRec(LexItem in, long category)
in
- the LexItem to be chekcedcategory
- the specified category in a long integer formatpublic static boolean IsRecContainCategoryInflection(LexItem in, long category, long inflection)
in
- the LexItem to be chekcedcategory
- the specified category in a long integer formatinflection
- the specified inflection in long integer formatpublic static boolean IsCategoryInflectionContainRec(LexItem in, long category, long inflection)
in
- the LexItem to be chekcedcategory
- the specified category in a long integer formatinflection
- the specified inflection in long integer format