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