gov.nih.nlm.nls.lvg.Flows
Class ToDerivationByCategory
java.lang.Object
gov.nih.nlm.nls.lvg.Flows.Transformation
gov.nih.nlm.nls.lvg.Flows.ToDerivationByCategory
- All Implemented Interfaces:
- java.lang.Cloneable
public class ToDerivationByCategory
- extends Transformation
- implements java.lang.Cloneable
This class provides features of generating derivational variants for
specified categories. This class utilize classes of ToDerivation and
OutputFilter.
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:
- Version:
- V-2006p
- Author:
- NLM NLS Development Team
- See Also:
-
Design Document
|
Method Summary |
static void |
main(java.lang.String[] args)
A unit test driver for this flow component. |
static java.util.Vector |
Mutate(LexItem in,
java.sql.Connection conn,
RamTrie trie,
int restrictFlag,
long outCategory,
boolean detailsFlag,
boolean mutateFlag)
Performs the mutation of this flow component. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ToDerivationByCategory
public ToDerivationByCategory()
Mutate
public static java.util.Vector Mutate(LexItem in,
java.sql.Connection conn,
RamTrie trie,
int restrictFlag,
long outCategory,
boolean detailsFlag,
boolean mutateFlag)
- Performs the mutation of this flow component.
- Parameters:
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 OutputFilter).outCategory - the specified categories for output filterdetailsFlag - a boolean flag for processing details informationmutateFlag - a boolean flag for processing mutate information
- Returns:
- the results from this flow component - a collection (Vector)
of LexItems
- See Also:
DbBase,
OutputFilter,
Category
main
public static void main(java.lang.String[] args)
- A unit test driver for this flow component.
Submit a bug or feature
Copyright © 2006p National Library of Medicine