001package org.maltparser.parser.algorithm.nivre; 002 003import org.maltparser.core.exception.MaltChainedException; 004import org.maltparser.parser.DependencyParserConfig; 005import org.maltparser.parser.TransitionSystem; 006import org.maltparser.parser.guide.OracleGuide; 007import org.maltparser.parser.history.GuideUserHistory; 008/** 009 * @author Johan Hall 010 * 011 */ 012public class NivreArcStandardFactory extends NivreFactory { 013 public NivreArcStandardFactory(DependencyParserConfig _manager) { 014 super(_manager); 015 } 016 017 public TransitionSystem makeTransitionSystem() throws MaltChainedException { 018 if (manager.isLoggerInfoEnabled()) { 019 manager.logInfoMessage(" Transition system : Arc-Standard\n"); 020 } 021 return new ArcStandard(manager.getPropagationManager()); 022 } 023 024 public OracleGuide makeOracleGuide(GuideUserHistory history) throws MaltChainedException { 025 if (manager.isLoggerInfoEnabled()) { 026 manager.logInfoMessage(" Oracle : Arc-Standard\n"); 027 } 028 return new ArcStandardOracle(manager, history); 029 } 030}