001package org.maltparser.parser.algorithm.planar; 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 Carlos Gomez Rodriguez 011 * 012 */ 013public class NivrePlanarArcEagerFactory extends PlanarFactory { 014 public NivrePlanarArcEagerFactory(DependencyParserConfig _manager) { 015 super(_manager); 016 } 017 018 public TransitionSystem makeTransitionSystem() throws MaltChainedException { 019 if (manager.isLoggerInfoEnabled()) { 020 manager.logInfoMessage(" Transition system : Planar Arc-Eager\n"); 021 } 022 return new Planar(manager.getPropagationManager()); 023 } 024 025 public OracleGuide makeOracleGuide(GuideUserHistory history) throws MaltChainedException { 026 if (manager.isLoggerInfoEnabled()) { 027 manager.logInfoMessage(" Oracle : Planar Arc-Eager\n"); 028 } 029 return new PlanarArcEagerOracle(manager, history); 030 } 031}