public class ToDerivationByCategory extends Transformation implements java.lang.Cloneable
Derivational variants are terms which are somehow related to the original term but do not share the same meaning. Often, the derivational variant changes syntactic category from the original term. Derivational variants are pre-computed and are put in Derivation table in Lvg database (facts). Derivations can also be generated by derivation rules through Lvg trie.
History:
NO_MUTATE_INFO, UPDATE
Constructor and Description |
---|
ToDerivationByCategory() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
A unit test driver for this flow component.
|
static java.util.Vector<LexItem> |
Mutate(LexItem in,
java.sql.Connection conn,
RamTrie trie,
int restrictFlag,
int derivationType,
int derivationNegation,
long outCategory,
boolean detailsFlag,
boolean mutateFlag)
Performs the mutation of this flow component.
|
static java.util.Vector<LexItem> |
Mutate(LexItem in,
java.sql.Connection conn,
RamTrie trie,
int restrictFlag,
long outCategory,
boolean detailsFlag,
boolean mutateFlag)
Performs the mutation of this flow component.
|
GetTestStr, PrintResult, PrintResults, UpdateLexItem, UpdateLexItem, UpdateLexItem
public static java.util.Vector<LexItem> Mutate(LexItem in, java.sql.Connection conn, RamTrie trie, int restrictFlag, int derivationType, int derivationNegation, long outCategory, boolean detailsFlag, boolean mutateFlag)
in
- a LexItem as the input for this flow componentconn
- LVG database connectiontrie
- LVG Ram trierestrictFlag
- a numberical flag to restrict out into LVG_ONLY
LVG_OR_ALL, or ALL (defined in LvgFlowSpecificOption).derivationType
- a numberical flag to restrict derivation type
D_TYPE_ZERO, D_TYPE_PREFIX, D_TYPE_SUFFIX, D_TYPE_ZERO_PREFIX,
D_TYPE_ZERO_SUFFIX, D_TYPE_PREFIX_SUFFIX, D_TYPE_ALL (defined in
LvgFlowSpecificOption);derivationNegation
- a numberical flag to restrict derivation
negation D_NEGATION_OTHERWISE, D_NEGATION_NEGATIVE, D_NEGATION_BOTHoutCategory
- the specified categories for output filterdetailsFlag
- a boolean flag for processing details informationmutateFlag
- a boolean flag for processing mutate informationDbBase
,
LvgFlowSpecificOption
,
Category
public static java.util.Vector<LexItem> Mutate(LexItem in, java.sql.Connection conn, RamTrie trie, int restrictFlag, long outCategory, boolean detailsFlag, boolean mutateFlag)
in
- a LexItem as the input for this flow componentconn
- LVG database connectiontrie
- LVG Ram trierestrictFlag
- a numberical flag to restrict out into LVG_ONLY
LVG_OR_ALL, or ALL (defined in LvgFlowSpecificOption).outCategory
- the specified categories for output filterdetailsFlag
- a boolean flag for processing details informationmutateFlag
- a boolean flag for processing mutate informationDbBase
,
LvgFlowSpecificOption
,
Category
public static void main(java.lang.String[] args)
args
- arguments