net.sourceforge.nite.tools.necoder
Class NECoderConfig

java.lang.Object
  extended by net.sourceforge.nite.gui.util.AbstractCallableToolConfig
      extended by net.sourceforge.nite.tools.dacoder.DACoderConfig
          extended by net.sourceforge.nite.tools.necoder.NECoderConfig
Direct Known Subclasses:
NonSpanningCoderConfig

public class NECoderConfig
extends DACoderConfig

Soft config: see DACoderConfig. Hardcoded settings: see overrides below.

Author:
Dennis Reidsma, UTwente

Constructor Summary
NECoderConfig()
           
 
Method Summary
 boolean expandOntologyTree()
          Named-entity tool specific setting for controlling the ontology tree.
 boolean getAllowNestedNamedEntities()
          Determines whether nested named-entities are permitted (set the corpus setting attribute 'nenesting' to 'true' to permit nesting.
 java.util.Set getDisplayedAnnotationNames()
          Override for your application! Determines which annotation elements should be displayed.
 java.lang.String getHelpSetName()
          default to true for DACoder, but allow user configuration to override (return the value from AbstractCallableToolConfig) public boolean getAllowTranscriptSelect() { String transelect = getNXTConfig().getGuiSettingValue("transcriptselection"); if (transelect!=null) return super.getAllowTranscriptSelect(); return true; } /** default to true for DACoder, but allow user configuration to override (return the value from AbstractCallableToolConfig) public boolean getAllowAnnotationSelect() { String anselect = getNXTConfig().getGuiSettingValue("annotationselection"); if (anselect!=null) return super.getAllowAnnotationSelect(); return true; } /** default to false for DACoder, but allow user configuration to override (return the value from AbstractCallableToolConfig) public boolean getAllowMultiAgentSelect() { String agselect = getNXTConfig().getGuiSettingValue("multiagentselection"); if (agselect!=null) return super.getAllowMultiAgentSelect(); return false; }
 int getWordlevelSelectionType()
          default to NTranscriptionView.CROSS_SEGMENT_PHRASE for DACoder, but allow user configuration to override (return the value from AbstractCallableToolConfig - i.e.
 
Methods inherited from class net.sourceforge.nite.tools.dacoder.DACoderConfig
getAddresseeIgnoreAttribute, getAPElementName, getAPGloss, getAPTypeRoot, getDAAGloss, getDAAttributeName, getDAElementName, getDATypeDefault, getDATypeRole, getDATypeRoot, getDefaultAPType, getNEAbbrevAttrib, getNEAttributeName, getNEDisplayAttribute, getNEElementName, getNEMultiplePointers, getNETypeDefault, getNETypePointerRole, getNETypeRoot, getNXTConfigRootName, initDisplayedAnnotationNames, showAdjacencyPairWindows
 
Methods inherited from class net.sourceforge.nite.gui.util.AbstractCallableToolConfig
clearCachedValues, getAllowAnnotationSelect, getAllowMultiAgentSelect, getAllowTranscriptSelect, getApplicationName, getNXTConfig, getSegmentationElementName, getSegmentToTextAttribute, getSegmentToTextDelegate, getTranscriptionAttribute, getTranscriptionLayerName, getTranscriptionToTextDelegate, loadConfig, reloadConfig, setCorpusSettings, setGUISettings, setMetaDataFile, showLogWindows
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NECoderConfig

public NECoderConfig()
Method Detail

getDisplayedAnnotationNames

public java.util.Set getDisplayedAnnotationNames()
Override for your application! Determines which annotation elements should be displayed. Set of strings... maybe a config setting, later

Overrides:
getDisplayedAnnotationNames in class AbstractCallableToolConfig

getWordlevelSelectionType

public int getWordlevelSelectionType()
Description copied from class: DACoderConfig
default to NTranscriptionView.CROSS_SEGMENT_PHRASE for DACoder, but allow user configuration to override (return the value from AbstractCallableToolConfig - i.e. the config file)

Overrides:
getWordlevelSelectionType in class DACoderConfig

getHelpSetName

public java.lang.String getHelpSetName()
Description copied from class: DACoderConfig
default to true for DACoder, but allow user configuration to override (return the value from AbstractCallableToolConfig) public boolean getAllowTranscriptSelect() { String transelect = getNXTConfig().getGuiSettingValue("transcriptselection"); if (transelect!=null) return super.getAllowTranscriptSelect(); return true; } /** default to true for DACoder, but allow user configuration to override (return the value from AbstractCallableToolConfig) public boolean getAllowAnnotationSelect() { String anselect = getNXTConfig().getGuiSettingValue("annotationselection"); if (anselect!=null) return super.getAllowAnnotationSelect(); return true; } /** default to false for DACoder, but allow user configuration to override (return the value from AbstractCallableToolConfig) public boolean getAllowMultiAgentSelect() { String agselect = getNXTConfig().getGuiSettingValue("multiagentselection"); if (agselect!=null) return super.getAllowMultiAgentSelect(); return false; }

Overrides:
getHelpSetName in class DACoderConfig

getAllowNestedNamedEntities

public boolean getAllowNestedNamedEntities()
Determines whether nested named-entities are permitted (set the corpus setting attribute 'nenesting' to 'true' to permit nesting.


expandOntologyTree

public boolean expandOntologyTree()
Named-entity tool specific setting for controlling the ontology tree. It is occasionally useful to force the ontology to remain un-expanded and if you set the corpus setting 'neontologyexpanded' to 'false', this effect is achieved