|
MaltParser 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.maltparser.parser.SingleMalt
public class SingleMalt
Field Summary | |
---|---|
protected ConfigurationDir |
configDir
|
protected org.apache.log4j.Logger |
configLogger
|
protected long |
endTime
|
protected Guide |
guide
|
static int |
LEARN
|
protected int |
mode
|
protected int |
optionContainerIndex
|
static int |
PARSE
|
protected ParsingAlgorithm |
parsingAlgorithm
|
protected ConfigurationRegistry |
registry
|
protected long |
startTime
|
protected SymbolTableHandler |
symbolTableHandler
|
Constructor Summary | |
---|---|
SingleMalt()
|
Method Summary | |
---|---|
void |
checkOptionDependency()
|
org.apache.log4j.Logger |
getConfigLogger()
|
ConfigurationDir |
getConfigurationDir()
|
Guide |
getGuide()
Returns the guide |
int |
getMode()
|
OptionManager |
getOptionManager()
|
Object |
getOptionValue(String optiongroup,
String optionname)
|
String |
getOptionValueString(String optiongroup,
String optionname)
|
ParsingAlgorithm |
getParsingAlgorithm()
Returns the parsing algorithm in use |
ConfigurationRegistry |
getRegistry()
|
SymbolTableHandler |
getSymbolTables()
Returns the list of symbol tables |
org.apache.log4j.Logger |
initConfigLogger(String logfile,
String level)
Initialize the configuration logger |
void |
initGuide()
|
void |
initialize(int containerIndex,
DataFormatInstance dataFormatInstance,
ConfigurationDir configDir,
int mode)
|
protected void |
initParsingAlgorithm()
Initialize the parsing algorithm |
void |
oracleParse(DependencyStructure goldGraph,
DependencyStructure oracleGraph)
|
void |
parse(DependencyStructure graph)
|
void |
predict(GuideUserAction action)
This method is used during parsing. |
boolean |
predictFromKBestList(GuideUserAction action)
This method is used during parsing. |
void |
process(Object[] arguments)
|
void |
setConfigLogger(org.apache.log4j.Logger logger)
|
void |
setConfigurationDir(ConfigurationDir configDir)
|
void |
setInstance(GuideUserAction action)
This method is used during learning. |
void |
setRegistry(ConfigurationRegistry registry)
|
void |
terminate(Object[] arguments)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LEARN
public static final int PARSE
protected ConfigurationDir configDir
protected org.apache.log4j.Logger configLogger
protected int optionContainerIndex
protected ParsingAlgorithm parsingAlgorithm
protected Guide guide
protected int mode
protected ConfigurationRegistry registry
protected SymbolTableHandler symbolTableHandler
protected long startTime
protected long endTime
Constructor Detail |
---|
public SingleMalt()
Method Detail |
---|
public void initialize(int containerIndex, DataFormatInstance dataFormatInstance, ConfigurationDir configDir, int mode) throws MaltChainedException
MaltChainedException
protected void initParsingAlgorithm() throws MaltChainedException
MaltChainedException
public void initGuide() throws MaltChainedException
MaltChainedException
public void process(Object[] arguments) throws MaltChainedException
MaltChainedException
public void parse(DependencyStructure graph) throws MaltChainedException
parse
in interface DependencyParserConfig
MaltChainedException
public void oracleParse(DependencyStructure goldGraph, DependencyStructure oracleGraph) throws MaltChainedException
oracleParse
in interface DependencyParserConfig
MaltChainedException
public void terminate(Object[] arguments) throws MaltChainedException
MaltChainedException
public org.apache.log4j.Logger initConfigLogger(String logfile, String level) throws MaltChainedException
MaltChainedException
public org.apache.log4j.Logger getConfigLogger()
getConfigLogger
in interface Configuration
public void setConfigLogger(org.apache.log4j.Logger logger)
setConfigLogger
in interface Configuration
public ConfigurationDir getConfigurationDir()
getConfigurationDir
in interface Configuration
public void setConfigurationDir(ConfigurationDir configDir)
setConfigurationDir
in interface Configuration
public int getMode()
public ConfigurationRegistry getRegistry()
getRegistry
in interface Configuration
public void setRegistry(ConfigurationRegistry registry)
public Object getOptionValue(String optiongroup, String optionname) throws MaltChainedException
getOptionValue
in interface Configuration
MaltChainedException
public String getOptionValueString(String optiongroup, String optionname) throws MaltChainedException
getOptionValueString
in interface Configuration
MaltChainedException
public OptionManager getOptionManager() throws MaltChainedException
MaltChainedException
public SymbolTableHandler getSymbolTables()
getSymbolTables
in interface Configuration
public ParsingAlgorithm getParsingAlgorithm()
getParsingAlgorithm
in interface DependencyParserConfig
public Guide getGuide()
getGuide
in interface DependencyParserConfig
public void checkOptionDependency() throws MaltChainedException
MaltChainedException
public void setInstance(GuideUserAction action) throws MaltChainedException
setInstance
in interface Guidable
action
-
MaltChainedException
public boolean predictFromKBestList(GuideUserAction action) throws MaltChainedException
predictFromKBestList
in interface Guidable
MaltChainedException
public void predict(GuideUserAction action) throws MaltChainedException
predict
in interface Guidable
MaltChainedException
|
MaltParser 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |