Because of a lapse in government funding, the information on this website may not be up to date, transactions submitted via the website may not be processed, and the agency may not be able to respond to inquiries until appropriations are enacted. The NIH Clinical Center (the research hospital of NIH) is open. For more details about its operating status, please visit cc.nih.gov. Updates regarding government operating status and resumption of normal operations can be found at OPM.gov.
LVG Transformations (Flow Components)
FlowTransformation
In the new Java version of LVG, a flow component is called as a transformation. The transformation class is the base class for all flow classes and provides basic functions such as UpdateFlowHistory( ) and GetResults( ). A public method, Mutate( ), is implemented in all flow classes and performs the feature of transforming text. This Mutate( ) method take one LexItem as the input and return a Vector of LexItem(s).
LexItem
The LexItem class is redesigned in Java version of LVG. A LexItem is the object of a lexical element. It contains all information about a lexical element, including:
Category
A category is the part of speech. A Category class extends from BitMaskBase class. Category variants are described as follows:
Bit | Value | Variant | Other Symbols | Example | ||||||||||||||||||||||||||||||||||||||||||||||||||
0 | 1 | adj | 1 | 2 | adv | 2 | 4 | aux | 3 | 8 | compl | 4 | 16 | conj | 5 | 32 | det | 6 | 64 | modal | . | 7 | 128 | noun | 8 | 256 | prep | 9 | 512 | pron | 10 | 1024 | verb | |
Inflection
An inflection is the principle part. An Inflection class extends from BitMaskBase class. Inflection variants are described as follows:
Bit | Value | Variant | Other Symbols | Example | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
0 | 1 | base | . | 1 | 2 | comparative | . | 2 | 4 | superlative | . | 3 | 8 | plural | 4 | 16 | presPart | 5 | 32 | past | . | 6 | 64 | pastPart | . | 7 | 128 | pres3s | . | 8 | 256 | positive | . | 9 | 512 | singular | 10 | 1024 | infinitive | 11 | 2048 | pres123p | . | 12 | 4096 | pastNeg | . | 13 | 8192 | pres123pNeg | . | 14 | 16384 | pres1s | . | 15 | 32768 | past1p23pNeg | . | 16 | 65536 | past1p23p | . | 17 | 131072 | past1s3sNeg | . | 18 | 262144 | pres1p23p | . | 19 | 524288 | pres1p23pNeg | . | 20 | 1048576 | past1s3s | . | 21 | 2097152 | pres | . | 22 | 4194304 | pres3sNeg | . | 23 | 8388608 | presNeg | . | |
where:
Gender
A Gender class extends from BitMaskBase class. Gender is used in certain language, such as French. Gender variants are described as follows:
Bit | Value | Variant | Other Symbols | Example | |||||||||||||||
0 | 1 | male | 1 | 2 | female | 2 | 4 | neuter | . | 3 | 8 | notKnowable | .
| |
Flow (class)
A Flow class extends from BitMaskBase class. It is used as enumeration for all flow components. Please note Flow class is different from Transformation class in Java implementation.
BitMaskBase
BitMaskBase class is the base class for Category, Inflection, Gender, Flow.
This class provides basic bit mask operation, such as: