public Sentence AnalyzeForResult(string sentenceText, out ComprenoParsingResult parsingResult) { var xml = _analyzeInCompreno(sentenceText); log.Debug("Parsing sentence, getting parsing Result..."); var resultSentence = new Sentence(xml, true); log.Debug("Done."); parsingResult = resultSentence.ParsingResult; log.InfoFormat("Parsing result is {0}.", parsingResult.ToString()); return resultSentence; }
private void _setParsingInfoForIndex(SentenceIndex index, ComprenoParsingResult processingResult) { if (processingResult.Value != ComprenoParsingResult.ParsingOK.Value) index.Info4 = IndexInfoParsingError.ParsingError; else index.Info4 = IndexInfoParsingError.ParsingCorrect; }