org.maltparser.parser.algorithm.nivre.NivreArcStandardFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maltparser Show documentation
Show all versions of maltparser Show documentation
MaltParser is a system for data-driven dependency parsing, which can be used to induce a parsing model from treebank data and to parse new data using an induced model.
package org.maltparser.parser.algorithm.nivre;
import org.maltparser.core.exception.MaltChainedException;
import org.maltparser.parser.DependencyParserConfig;
import org.maltparser.parser.TransitionSystem;
import org.maltparser.parser.guide.OracleGuide;
import org.maltparser.parser.history.GuideUserHistory;
/**
* @author Johan Hall
*
*/
public class NivreArcStandardFactory extends NivreFactory {
public NivreArcStandardFactory(DependencyParserConfig _manager) {
super(_manager);
}
public TransitionSystem makeTransitionSystem() throws MaltChainedException {
if (manager.isLoggerInfoEnabled()) {
manager.logInfoMessage(" Transition system : Arc-Standard\n");
}
return new ArcStandard(manager.getPropagationManager());
}
public OracleGuide makeOracleGuide(GuideUserHistory history) throws MaltChainedException {
if (manager.isLoggerInfoEnabled()) {
manager.logInfoMessage(" Oracle : Arc-Standard\n");
}
return new ArcStandardOracle(manager, history);
}
}