Example #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public String getSymbolCodeToString(int code) throws org.maltparser.core.exception.MaltChainedException
        public virtual string getSymbolCodeToString(int code)
        {
            if (code >= 0)
            {
                if (nullValues == null || !nullValues.isNullValue(code))
                {
                    TrieNode node = codeTable[code];
                    if (node != null)
                    {
                        return(trie.getValue(node, this));
                    }
                    else
                    {
                        return(null);
                    }
                }
                else
                {
                    return(nullValues.codeToSymbol(code));
                }
            }
            else
            {
                throw new SymbolException("The symbol code '" + code + "' cannot be found in the symbol table. ");
            }
        }
Example #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public String getSymbolCodeToString(int code) throws org.maltparser.core.exception.MaltChainedException
        public string getSymbolCodeToString(int code)
        {
            if (code >= 0)
            {
                if (nullValues == null || !nullValues.isNullValue(code))
                {
                    return(codeSymbolMap[code]);
                }
                else
                {
                    return(nullValues.codeToSymbol(code));
                }
            }
            else
            {
                throw new SymbolException("The symbol code '" + code + "' cannot be found in the symbol table. ");
            }
        }