|
Twease | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.cornell.med.icb.synonyms.util.SynonymClImportTool
public final class SynonymClImportTool
Import abbreviations and DYMs from twease query logs using the command line.
| Field Summary | |
|---|---|
static int |
HUGO_ALIASES
Hugo_Aliases are stored in this position of the array. |
static int |
HUGO_MIN_SYMBOL_LENGTH
The minimum length acceptable for Hugo symbols. |
static int |
HUGO_NAME
Hugo_Name are stored in this position of the array. |
static int |
HUGO_PREVSYMBOLS
Hugo_PrevSymbols are stored in this position of the array. |
static int |
HUGO_SYMBOL
Hugo_Symbol are stored in this position of the array. |
| Constructor Summary | |
|---|---|
SynonymClImportTool()
Constructor. |
|
SynonymClImportTool(String persistenceUnit)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getHugoLineCount()
Import value: number of hugo lines processed. |
int |
getMeshBaseTermsCount()
Import value: number of mesh base terms processed. |
SynonymImportTool |
getSynonymImportTool()
|
int |
getTweaseImportBadParseCount()
Import value: number of twease queries that couldn't be parsed. |
int |
getTweaseImportQueryCount()
Import value: number of twease queries imported. |
int |
getTweaseImportTermCount()
Import value: number of twease terms found. |
int |
getTweaseImportTermRepeatCount()
Import value: number of twease repeat terms found. |
void |
hugoImport(String filename)
Import a Hugo TSV file. |
void |
initializeQueryExecutor()
Initialze the QueryExecutor. |
static void |
main(String[] args)
Command line interface to SynonymImportTool. |
void |
meshImport(String filename)
Import the MeSH data. |
protected List<Synonym> |
processHugoDataLine(String line,
int[] header,
int minSymbolLen)
Process a Hugo data line for synonyms. |
void |
tweaseQueryLogImport(String filename,
boolean importRelated,
boolean importDym,
boolean importAbbr)
Import the abbreviations and DYM's for all the phrases and terms in the specified twease query logs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int HUGO_SYMBOL
public static final int HUGO_NAME
public static final int HUGO_PREVSYMBOLS
public static final int HUGO_ALIASES
public static final int HUGO_MIN_SYMBOL_LENGTH
| Constructor Detail |
|---|
public SynonymClImportTool(String persistenceUnit)
persistenceUnit - the jpa persistence-unit name to use.public SynonymClImportTool()
| Method Detail |
|---|
public SynonymImportTool getSynonymImportTool()
public void hugoImport(String filename)
throws IOException
filename - twease query log
IOException - problem reading the file
protected List<Synonym> processHugoDataLine(String line,
int[] header,
int minSymbolLen)
line - the line of data to useheader - the positions of the columns of iterestminSymbolLen - the minimum length of a symbol to accept
public void meshImport(String filename)
throws FileNotFoundException,
javax.xml.stream.XMLStreamException
filename - MeSH XML file of data
FileNotFoundException - specified twease query log does not exist
javax.xml.stream.XMLStreamException - problem processing the xml file
public void tweaseQueryLogImport(String filename,
boolean importRelated,
boolean importDym,
boolean importAbbr)
throws FileNotFoundException,
javax.xml.stream.XMLStreamException
filename - twease query logimportRelated - set to true to import "Related" synonymsimportDym - set to true to import "DYM" synonymsimportAbbr - set to true to import "Abbr" synonyms
FileNotFoundException - specified twease query log does not exist
javax.xml.stream.XMLStreamException - problem processing the xml file
public void initializeQueryExecutor()
throws twease.query.TweaseException,
org.apache.commons.configuration.ConfigurationException,
IllegalAccessException,
textractor.database.TextractorDatabaseException,
IOException,
InstantiationException,
InvocationTargetException,
NoSuchMethodException,
URISyntaxException,
ClassNotFoundException
twease.query.TweaseException - exception
org.apache.commons.configuration.ConfigurationException - exception
IllegalAccessException - exception
textractor.database.TextractorDatabaseException - exception
IOException - exception
InstantiationException - exception
InvocationTargetException - exception
NoSuchMethodException - exception
ClassNotFoundException
URISyntaxExceptionpublic int getTweaseImportQueryCount()
public int getTweaseImportBadParseCount()
public int getTweaseImportTermCount()
public int getTweaseImportTermRepeatCount()
public int getHugoLineCount()
public int getMeshBaseTermsCount()
public static void main(String[] args)
args - command line arguments
|
Twease | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||