001 package org.maltparser.parser; 002 003 import org.maltparser.core.exception.MaltChainedException; 004 import org.maltparser.core.syntaxgraph.DependencyStructure; 005 /** 006 * @author Johan Hall 007 * 008 */ 009 public abstract class Parser extends Algorithm { 010 011 /** 012 * Creates a parser 013 * 014 * @param manager a reference to the single malt configuration 015 * @throws MaltChainedException 016 */ 017 public Parser(DependencyParserConfig manager) throws MaltChainedException { 018 super(manager); 019 } 020 /** 021 * Parses the empty dependency graph 022 * 023 * @param parseDependencyGraph a dependency graph 024 * @return a parsed dependency graph 025 * @throws MaltChainedException 026 */ 027 public abstract DependencyStructure parse(DependencyStructure parseDependencyGraph) throws MaltChainedException; 028 }