Exemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public LWDependencyGraph(org.maltparser.concurrent.graph.dataformat.DataFormat _dataFormat, org.maltparser.core.symbol.SymbolTableHandler _symbolTables, String[] inputTokens, String defaultRootLabel, boolean addEdges) throws org.maltparser.core.exception.MaltChainedException
        public LWDependencyGraph(DataFormat _dataFormat, SymbolTableHandler _symbolTables, string[] inputTokens, string defaultRootLabel, bool addEdges)
        {
            dataFormat   = _dataFormat;
            symbolTables = _symbolTables;
            rootLabels   = new RootLabels();
            nodes        = new List <LWNode>(inputTokens.Length + 1);
            comments     = new HashMap <int, List <string> >();
            resetTokens(inputTokens, defaultRootLabel, addEdges);
        }
Exemplo n.º 2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public LWDependencyGraph(org.maltparser.concurrent.graph.dataformat.DataFormat _dataFormat, org.maltparser.core.symbol.SymbolTableHandler _symbolTables) throws org.maltparser.core.exception.MaltChainedException
        public LWDependencyGraph(DataFormat _dataFormat, SymbolTableHandler _symbolTables)
        {
            dataFormat   = _dataFormat;
            symbolTables = _symbolTables;
            rootLabels   = new RootLabels();
            nodes        = new List <LWNode>();
            nodes.Add(new LWNode(this, 0));             // ROOT
            comments = new HashMap <int, List <string> >();
        }