edu.iastate.jtm.assistant
Class Highlighter
java.lang.Object
edu.iastate.jtm.gui.DefaultMonitorable
edu.iastate.jtm.EntityFinder
edu.iastate.jtm.assistant.Highlighter
- All Implemented Interfaces:
- Monitorable
public class Highlighter
- extends EntityFinder
- Author:
- Jing Ding
edu.iastate.jtm.assistant
jtm
| Methods inherited from class edu.iastate.jtm.EntityFinder |
findEntity, getEntitiesFound, getEntityCount, getGlobalDictionary, getHit, getHitsCount, getPluralDetector, getTaggedText, getTotalHitsCount, getTotalSenCount, loadGlobalDictionary, loadPeekDefinition, loadPluralDictionary, loadPluralDictionary, outputHits, setHitsThreshold, setMaxSentenceLength, setPeekNext, setRejectHits, setRejectLong, setVerbose |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QUERY_KEYWORD
static java.lang.String QUERY_KEYWORD
USER_KEYWORD
static java.lang.String USER_KEYWORD
Highlighter
public Highlighter(java.io.File singleDic)
throws java.io.IOException
- Throws:
java.io.IOException
Highlighter
public Highlighter(java.net.URL singleDic)
throws java.io.IOException
- Throws:
java.io.IOException
resetLocalDictionary
public void resetLocalDictionary()
setHighlightUserKeyword
public void setHighlightUserKeyword(boolean h)
setHighlightQueryKeyword
public void setHighlightQueryKeyword(boolean h)
parseTranslation
public void parseTranslation(org.dom4j.Element translationStack,
int mode)
updateDictionary
public void updateDictionary()
moveKeyword
public void moveKeyword()
moveAll
public void moveAll()
sortKeywords
public void sortKeywords(javax.swing.DefaultComboBoxModel keywords)
saveKeywords
public void saveKeywords(java.io.File outfile)
loadKeywords
public void loadKeywords(java.io.File infile)
highlight
public void highlight(Highlightable highlightable)
showDialog
public void showDialog()