public abstract class ParsingAlgorithm extends java.lang.Object implements AlgoritmInterface
Modifier and Type | Field and Description |
---|---|
protected ClassifierGuide |
classifierGuide |
protected ParserConfiguration |
currentParserConfiguration |
protected DependencyParserConfig |
manager |
protected ParserState |
parserState |
protected ParserRegistry |
registry |
Constructor and Description |
---|
ParsingAlgorithm(DependencyParserConfig _manager,
SymbolTableHandler symbolTableHandler)
Creates a parsing algorithm
|
Modifier and Type | Method and Description |
---|---|
protected void |
copyDynamicInput(DependencyStructure source,
DependencyStructure target) |
protected void |
copyEdges(DependencyStructure source,
DependencyStructure target)
Copies the edges of the source dependency structure to the target dependency structure
|
ParserConfiguration |
getCurrentParserConfiguration()
Returns the current active parser configuration
|
ClassifierGuide |
getGuide()
Returns the classifier guide.
|
DependencyParserConfig |
getManager()
Returns the single malt configuration
|
ParserRegistry |
getParserRegistry() |
ParserState |
getParserState()
Returns the parser state
|
protected void |
setCurrentParserConfiguration(ParserConfiguration currentParserConfiguration)
Sets the current parser configuration
|
void |
setGuide(ClassifierGuide guide)
Sets the classifier guide
|
abstract void |
terminate() |
protected final DependencyParserConfig manager
protected final ParserRegistry registry
protected ClassifierGuide classifierGuide
protected final ParserState parserState
protected ParserConfiguration currentParserConfiguration
public ParsingAlgorithm(DependencyParserConfig _manager, SymbolTableHandler symbolTableHandler) throws MaltChainedException
_manager
- a reference to the single malt configurationsymbolTableHandler
- a reference to the symbol table handlerMaltChainedException
public abstract void terminate() throws MaltChainedException
MaltChainedException
public ParserRegistry getParserRegistry()
getParserRegistry
in interface AlgoritmInterface
public ClassifierGuide getGuide()
public void setGuide(ClassifierGuide guide)
guide
- a classifier guidepublic ParserConfiguration getCurrentParserConfiguration()
getCurrentParserConfiguration
in interface AlgoritmInterface
protected void setCurrentParserConfiguration(ParserConfiguration currentParserConfiguration)
currentParserConfiguration
- a parser configurationpublic ParserState getParserState()
public DependencyParserConfig getManager()
getManager
in interface AlgoritmInterface
protected void copyEdges(DependencyStructure source, DependencyStructure target) throws MaltChainedException
source
- a source dependency structuretarget
- a target dependency structureMaltChainedException
protected void copyDynamicInput(DependencyStructure source, DependencyStructure target) throws MaltChainedException
MaltChainedException
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.