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