public InputSentence(FileStream input) { AppliedAlgorithms = new PreProcessingAlgoritms(); var xml = XDocument.Load(input); InitialText = xml.Root.Element("sentence_text").Value.Trim(); index = new SentenceIndex(xml.Root.Element("block2_sentence_info").Value); IsInitiallyModified = bool.Parse(xml.Root.Element("is_sentence_modified").Value); }
private void _setParsingInfoForIndex(SentenceIndex index, ComprenoParsingResult processingResult) { if (processingResult.Value != ComprenoParsingResult.ParsingOK.Value) index.Info4 = IndexInfoParsingError.ParsingError; else index.Info4 = IndexInfoParsingError.ParsingCorrect; }