org.maltparser.parser
Class SingleMalt
java.lang.Object
   org.maltparser.parser.SingleMalt
org.maltparser.parser.SingleMalt
- All Implemented Interfaces: 
- Configuration, DependencyParserConfig
- public class SingleMalt 
- extends Object- implements DependencyParserConfig
- Author:
- Johan Hall
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
LEARN
public static final int LEARN
- See Also:
- Constant Field Values
PARSE
public static final int PARSE
- See Also:
- Constant Field Values
configDir
protected ConfigurationDir configDir
configLogger
protected org.apache.log4j.Logger configLogger
optionContainerIndex
protected int optionContainerIndex
parsingAlgorithm
protected Algorithm parsingAlgorithm
mode
protected int mode
registry
protected ConfigurationRegistry registry
symbolTableHandler
protected SymbolTableHandler symbolTableHandler
startTime
protected long startTime
endTime
protected long endTime
nIterations
protected int nIterations
propagationManager
protected PropagationManager propagationManager
SingleMalt
public SingleMalt()
initialize
public void initialize(int containerIndex,
                       DataFormatInstance dataFormatInstance,
                       ConfigurationDir configDir,
                       int mode)
                throws MaltChainedException
- 
 
- 
- Throws:
- MaltChainedException
 
initParsingAlgorithm
protected void initParsingAlgorithm()
                             throws MaltChainedException
- Initialize the parsing algorithm
 
- 
 
- 
- Throws:
- MaltChainedException
 
addRegistry
public void addRegistry(Class<?> clazz,
                        Object o)
- 
 
- 
 
process
public void process(Object[] arguments)
             throws MaltChainedException
- 
 
- 
- Throws:
- MaltChainedException
 
parse
public void parse(DependencyStructure graph)
           throws MaltChainedException
- 
- Specified by:
- parsein interface- DependencyParserConfig
 
- 
- Throws:
- MaltChainedException
 
oracleParse
public void oracleParse(DependencyStructure goldGraph,
                        DependencyStructure oracleGraph)
                 throws MaltChainedException
- 
- Specified by:
- oracleParsein interface- DependencyParserConfig
 
- 
- Throws:
- MaltChainedException
 
train
public void train()
           throws MaltChainedException
- 
 
- 
- Throws:
- MaltChainedException
 
terminate
public void terminate(Object[] arguments)
               throws MaltChainedException
- 
 
- 
- Throws:
- MaltChainedException
 
initConfigLogger
public org.apache.log4j.Logger initConfigLogger(String logfile,
                                                String level)
                                         throws MaltChainedException
- Initialize the configuration logger
 
- 
 
- 
- Returns:
- the configuration logger
- Throws:
- MaltChainedException
 
getConfigLogger
public org.apache.log4j.Logger getConfigLogger()
- 
- Specified by:
- getConfigLoggerin interface- Configuration
 
- 
 
setConfigLogger
public void setConfigLogger(org.apache.log4j.Logger logger)
- 
- Specified by:
- setConfigLoggerin interface- Configuration
 
- 
 
getConfigurationDir
public ConfigurationDir getConfigurationDir()
- 
- Specified by:
- getConfigurationDirin interface- Configuration
 
- 
 
setConfigurationDir
public void setConfigurationDir(ConfigurationDir configDir)
- 
- Specified by:
- setConfigurationDirin interface- Configuration
 
- 
 
getMode
public int getMode()
- 
 
- 
 
getRegistry
public ConfigurationRegistry getRegistry()
- 
- Specified by:
- getRegistryin interface- Configuration
 
- 
 
setRegistry
public void setRegistry(ConfigurationRegistry registry)
- 
 
- 
 
getOptionValue
public Object getOptionValue(String optiongroup,
                             String optionname)
                      throws MaltChainedException
- 
- Specified by:
- getOptionValuein interface- Configuration
 
- 
- Throws:
- MaltChainedException
 
getOptionValueString
public String getOptionValueString(String optiongroup,
                                   String optionname)
                            throws MaltChainedException
- 
- Specified by:
- getOptionValueStringin interface- Configuration
 
- 
- Throws:
- MaltChainedException
 
getOptionManager
public OptionManager getOptionManager()
                               throws MaltChainedException
- 
 
- 
- Throws:
- MaltChainedException
 
getSymbolTables
public SymbolTableHandler getSymbolTables()
- Returns the list of symbol tables
 
- 
- Specified by:
- getSymbolTablesin interface- Configuration
 
- 
- Returns:
- the list of symbol tables
 
getPropagationManager
public PropagationManager getPropagationManager()
- 
- Specified by:
- getPropagationManagerin interface- DependencyParserConfig
 
- 
 
getAlgorithm
public Algorithm getAlgorithm()
- 
- Specified by:
- getAlgorithmin interface- DependencyParserConfig
 
- 
 
getGuide
public ClassifierGuide getGuide()
- Returns the guide
 
- 
- Specified by:
- getGuidein interface- DependencyParserConfig
 
- 
- Returns:
- the guide
 
checkOptionDependency
public void checkOptionDependency()
                           throws MaltChainedException
- 
 
- 
- Throws:
- MaltChainedException
 
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.