|
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.SynonymImportTool
public final class SynonymImportTool
Import abbreviations and DYMs from twease query logs.
| Field Summary | |
|---|---|
static String |
PERSISTENCE_UNIT_DEFAULT
The default persistenceUnit as defined by textractor.properties. |
| Constructor Summary | |
|---|---|
SynonymImportTool()
Constructor. |
|
SynonymImportTool(String persistenceUnit)
Constructor. |
|
SynonymImportTool(SynonymEngine synonymEngine)
Constructor to use if you created the SynonymEngine elsewhere. |
|
| Method Summary | |
|---|---|
void |
addAbbrs(String term,
List<textractor.scoredresult.ScoredResult> terms,
String appliesToVal,
String source)
Add ArrayList[AbbreviationTerm] to the synonyms list. |
int |
dropAll()
Drop all synonyms in the SynonymEngine. |
int |
dropSource(String source)
Drop all synonyms for a single source. |
void |
finished()
Call this when you are finished with the ImportTool object if you had import tool create the synonym engine. |
SynonymEngine |
getSynonymEngine()
|
void |
recreateIndexes()
Recreate the indexes. |
void |
viewWord(String word)
View all synonyms (with details) for a single dictionary word. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PERSISTENCE_UNIT_DEFAULT
| Constructor Detail |
|---|
public SynonymImportTool()
public SynonymImportTool(String persistenceUnit)
persistenceUnit - the jpa persistence-unit name to use.public SynonymImportTool(SynonymEngine synonymEngine)
synonymEngine - the synonymEngine to use| Method Detail |
|---|
public SynonymEngine getSynonymEngine()
public void finished()
public int dropAll()
public void recreateIndexes()
public int dropSource(String source)
source - the source to drop synonyms for
public void viewWord(String word)
word - to find synonyms for
public void addAbbrs(String term,
List<textractor.scoredresult.ScoredResult> terms,
String appliesToVal,
String source)
term - The dictionaryWordterms - the abbreviations listappliesToVal - the appliesTo value for these synonymssource - the source value for these synonyms
|
Twease | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||