示例#1
0
        public virtual void addTransition(int code, string symbol, bool labeled, TransitionTable childrenTable)
        {
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final Transition transition = new Transition(code, symbol, labeled);
            Transition transition = new Transition(code, symbol, labeled);

            code2transitionMap[code]     = transition;
            symbol2transitionMap[symbol] = transition;
            childrenTables[transition]   = childrenTable;
        }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public org.maltparser.core.symbol.Table addSymbolTable(String tableName) throws org.maltparser.core.exception.MaltChainedException
        public virtual Table addSymbolTable(string tableName)
        {
            TransitionTable table = transitionTables[tableName];

            if (table == null)
            {
                table = new TransitionTable(tableName);
                transitionTables[tableName] = table;
            }
            return(table);
        }