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