public abstract class Trainer extends ParsingAlgorithm
classifierGuide, currentParserConfiguration, manager, parserState, registry
Constructor and Description |
---|
Trainer(DependencyParserConfig manager,
SymbolTableHandler symbolTableHandler)
Creates a parser trainer
|
Modifier and Type | Method and Description |
---|---|
abstract OracleGuide |
getOracleGuide()
Returns the oracle guide.
|
abstract DependencyStructure |
parse(DependencyStructure goldDependencyGraph,
DependencyStructure parseDependencyGraph)
Trains a parser using the gold-standard dependency graph and returns a parsed dependency graph
|
abstract void |
train() |
copyDynamicInput, copyEdges, getCurrentParserConfiguration, getGuide, getManager, getParserRegistry, getParserState, setCurrentParserConfiguration, setGuide, terminate
public Trainer(DependencyParserConfig manager, SymbolTableHandler symbolTableHandler) throws MaltChainedException
manager
- a reference to the single malt configurationMaltChainedException
public abstract DependencyStructure parse(DependencyStructure goldDependencyGraph, DependencyStructure parseDependencyGraph) throws MaltChainedException
goldDependencyGraph
- a old-standard dependency graphparseDependencyGraph
- a empty dependency graphMaltChainedException
public abstract OracleGuide getOracleGuide()
public abstract void train() throws MaltChainedException
MaltChainedException
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.