//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public void process(Object[] arguments) throws org.maltparser.core.exception.MaltChainedException public virtual void process(object[] arguments) { if (mode == LEARN) { if (arguments.Length < 2 || !(arguments[0] is IDependencyStructure) || !(arguments[1] is IDependencyStructure)) { throw new MaltChainedException("The single malt learn task must be supplied with at least two dependency structures. "); } IDependencyStructure systemGraph = (IDependencyStructure)arguments[0]; IDependencyStructure goldGraph = (IDependencyStructure)arguments[1]; if (systemGraph.HasTokens() && Guide != null) { Guide.finalizeSentence(((Trainer)Algorithm).parse(goldGraph, systemGraph)); } } else if (mode == PARSE) { if (arguments.Length < 1 || !(arguments[0] is IDependencyStructure)) { throw new MaltChainedException("The single malt parse task must be supplied with at least one input terminal structure and one output dependency structure. "); } IDependencyStructure processGraph = (IDependencyStructure)arguments[0]; if (processGraph.HasTokens()) { parser.Parse(processGraph); // ((Parser)getAlgorithm()).parse(processGraph); } } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public void parse(org.maltparser.core.syntaxgraph.DependencyStructure graph) throws org.maltparser.core.exception.MaltChainedException public virtual void Parse(IDependencyStructure graph) { if (graph.HasTokens()) { // ((Parser)getAlgorithm()).parse(graph); parser.Parse(graph); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public void parse(org.maltparser.core.syntaxgraph.DependencyStructure graph) throws org.maltparser.core.exception.MaltChainedException public void Parse(IDependencyStructure graph) { if (graph.HasTokens()) { LWDeterministicParser parser = new LWDeterministicParser(this, graph.SymbolTables); parser.parse(graph); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public void oracleParse(org.maltparser.core.syntaxgraph.DependencyStructure goldGraph, org.maltparser.core.syntaxgraph.DependencyStructure oracleGraph) throws org.maltparser.core.exception.MaltChainedException public virtual void OracleParse(IDependencyStructure goldGraph, IDependencyStructure oracleGraph) { if (oracleGraph.HasTokens()) { if (Guide != null) { Guide.finalizeSentence(trainer.parse(goldGraph, oracleGraph)); } else { trainer.parse(goldGraph, oracleGraph); } } }