예제 #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public LWDeterministicParser(LWSingleMalt lwSingleMalt, org.maltparser.core.symbol.SymbolTableHandler symbolTableHandler) throws org.maltparser.core.exception.MaltChainedException
        public LWDeterministicParser(LWSingleMalt lwSingleMalt, SymbolTableHandler symbolTableHandler)
        {
            manager  = lwSingleMalt;
            registry = new ParserRegistry();
            registry.SymbolTableHandler = symbolTableHandler;
            registry.DataFormatInstance = manager.DataFormatInstance;
            registry.setAbstractParserFeatureFactory(manager.ParserFactory);
            registry.Algorithm = this;
            transitionSystem   = manager.ParserFactory.makeTransitionSystem();
            transitionSystem.initTableHandlers(lwSingleMalt.DecisionSettings, symbolTableHandler);

            tableHandlers  = transitionSystem.TableHandlers;
            kBestSize      = lwSingleMalt.getkBestSize();
            decisionTables = new List <TableContainer>();
            actionTables   = new List <TableContainer>();
            initDecisionSettings(lwSingleMalt.DecisionSettings, lwSingleMalt.Classitem_separator);
            transitionSystem.initTransitionSystem(this);
            config        = manager.ParserFactory.makeParserConfiguration();
            featureModel  = manager.FeatureModelManager.getFeatureModel(lwSingleMalt.FeatureModelURL, 0, registry, manager.DataSplitColumn, manager.DataSplitStructure);
            currentAction = new ComplexDecisionAction(this);
        }