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