//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public org.maltparser.parser.ParserConfiguration makeParserConfiguration() throws org.maltparser.core.exception.MaltChainedException public virtual ParserConfiguration makeParserConfiguration() { if (manager.LoggerInfoEnabled) { manager.logInfoMessage(" Parser configuration : Two-Planar with no_covered_roots = " + manager.getOptionValue("planar", "no_covered_roots").ToString().ToUpper() + ", " + "acyclicity = " + manager.getOptionValue("planar", "acyclicity").ToString().ToUpper() + ", planar root handling = " + manager.getOptionValue("2planar", "planar_root_handling").ToString().ToUpper() + ", reduce on switch = " + manager.getOptionValue("2planar", "reduceonswitch").ToString().ToUpper() + "\n"); } return(new TwoPlanarConfig(manager.getOptionValue("planar", "no_covered_roots").ToString(), manager.getOptionValue("planar", "acyclicity").ToString(), manager.getOptionValue("2planar", "reduceonswitch").ToString(), manager.getOptionValue("multiplanar", "planar_root_handling").ToString())); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public org.maltparser.parser.ParserConfiguration makeParserConfiguration() throws org.maltparser.core.exception.MaltChainedException public virtual ParserConfiguration makeParserConfiguration() { if (manager.LoggerInfoEnabled) { manager.logInfoMessage(" Parser configuration : Stack\n"); } return(new StackConfig()); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public org.maltparser.parser.ParserConfiguration makeParserConfiguration() throws org.maltparser.core.exception.MaltChainedException public virtual ParserConfiguration makeParserConfiguration() { bool allowRoot = (bool?)manager.getOptionValue("nivre", "allow_root").Value; bool allowReduce = (bool?)manager.getOptionValue("nivre", "allow_reduce").Value; bool enforceTree = (bool?)manager.getOptionValue("nivre", "enforce_tree") && manager.getOptionValueString("config", "flowchart").Equals("parse"); if (manager.LoggerInfoEnabled) { manager.logInfoMessage(" Parser configuration : Nivre with allow_root=" + allowRoot + ", allow_reduce=" + allowReduce + " and enforce_tree=" + enforceTree + "\n"); } return(new NivreConfig(allowRoot, allowReduce, enforceTree)); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public org.maltparser.parser.ParserConfiguration makeParserConfiguration() throws org.maltparser.core.exception.MaltChainedException public virtual ParserConfiguration makeParserConfiguration() { bool allowRoot = (bool?)manager.getOptionValue("covington", "allow_root").Value; bool allowShift = (bool?)manager.getOptionValue("covington", "allow_shift").Value; if (manager.LoggerInfoEnabled) { manager.logInfoMessage(" Parser configuration : Covington with allow_root=" + allowRoot + " and allow_shift=" + allowShift + "\n"); } CovingtonConfig config = new CovingtonConfig(allowRoot, allowShift); return(config); }