|
Lvg Java 2006p Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nih.nlm.nls.lvg.Flows.Transformation
gov.nih.nlm.nls.lvg.Flows.ToSymbolNameSynonym
public class ToSymbolNameSynonym
This class convert characters from a term into the synonym of unicode symbol names. The default format of the symbol name is ![symbol name]!
Users may have their own format by defining starting tag and ending tag. These tags file is configurable by modifying the configuration file.
History:
| Field Summary |
|---|
| Fields inherited from class gov.nih.nlm.nls.lvg.Flows.Transformation |
|---|
NO_MUTATE_INFO, UPDATE |
| Constructor Summary | |
|---|---|
ToSymbolNameSynonym()
|
|
| Method Summary | |
|---|---|
(package private) static int |
GetCharFromSymbolName(java.lang.String name,
java.lang.String startTag,
java.lang.String endTag)
|
static java.lang.String |
GetSymbolNameSynonym(java.lang.String inStr,
java.lang.String startTag,
java.lang.String endTag,
java.util.HashSet symbolSet,
java.util.Hashtable diacriticMap,
java.util.Hashtable ligatureMap,
java.util.Hashtable symbolSynonyms)
Get the symbol synonym for a symbol |
static java.util.Hashtable |
GetSymbolSynonymsFromFile(Configuration config)
Read in symbol name synonyms list from configuration file |
static void |
main(java.lang.String[] args)
A unit test driver for this flow component. |
static java.util.Vector |
Mutate(LexItem in,
java.lang.String startTag,
java.lang.String endTag,
java.util.HashSet symbolSet,
java.util.Hashtable diacriticMap,
java.util.Hashtable ligatureMap,
java.util.Hashtable symbolSynonyms,
boolean detailsFlag,
boolean mutateFlag)
Performs the mutation of this flow component. |
| Methods inherited from class gov.nih.nlm.nls.lvg.Flows.Transformation |
|---|
GetTestStr, PrintResult, PrintResults, UpdateLexItem, UpdateLexItem, UpdateLexItem |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ToSymbolNameSynonym()
| Method Detail |
|---|
public static java.util.Vector Mutate(LexItem in,
java.lang.String startTag,
java.lang.String endTag,
java.util.HashSet symbolSet,
java.util.Hashtable diacriticMap,
java.util.Hashtable ligatureMap,
java.util.Hashtable symbolSynonyms,
boolean detailsFlag,
boolean mutateFlag)
in - a LexItem as the input for this flow componentstartTag - the starting tag for symbol name (default: ![ )endTag - the ending tag for symbol name (default: ]! )diacriticMap - a hash table contain the mapping of diacriticsligatureMap - a hash table contain the mapping of ligaturessymbolSynonyms - a hash table contain the synonyms of symbolsdetailsFlag - a boolean flag for processing details informationmutateFlag - a boolean flag for processing mutate information
public static java.util.Hashtable GetSymbolSynonymsFromFile(Configuration config)
config - Configuratin object
public static void main(java.lang.String[] args)
public static java.lang.String GetSymbolNameSynonym(java.lang.String inStr,
java.lang.String startTag,
java.lang.String endTag,
java.util.HashSet symbolSet,
java.util.Hashtable diacriticMap,
java.util.Hashtable ligatureMap,
java.util.Hashtable symbolSynonyms)
inStr - a input symbol in stringstartTag - the starting tag for symbol name (default: ![ )endTag - the ending tag for symbol name (default: ]! )diacriticMap - a hash table contain the mapping of diacriticsligatureMap - a hash table contain the mapping of ligaturessymbolSynonyms - a hash table contain the synonyms of symbols
static int GetCharFromSymbolName(java.lang.String name,
java.lang.String startTag,
java.lang.String endTag)
|
Lvg Java 2006p Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||