Example #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public ParserState(DependencyParserConfig manager, org.maltparser.core.symbol.SymbolTableHandler symbolTableHandler, AbstractParserFactory factory) throws org.maltparser.core.exception.MaltChainedException
        public ParserState(IDependencyParserConfig manager, SymbolTableHandler symbolTableHandler, AbstractParserFactory factory)
        {
            this.factory     = factory;
            historyStructure = new HistoryList();
            transitionSystem = factory.makeTransitionSystem();
            string decisionSettings = manager.getOptionValue("guide", "decision_settings").ToString().Trim();

            TransitionSystem.initTableHandlers(decisionSettings, symbolTableHandler);
            int    kBestSize           = ((int?)manager.getOptionValue("guide", "kbest")).Value;
            string classitem_separator = manager.getOptionValue("guide", "classitem_separator").ToString();

            history = new History.History(decisionSettings, classitem_separator, TransitionSystem.TableHandlers, kBestSize);
            TransitionSystem.initTransitionSystem(history);
            config = factory.makeParserConfiguration();
        }