Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 private void _setParsingInfoForIndex(SentenceIndex index, ComprenoParsingResult processingResult)
 {
     if (processingResult.Value != ComprenoParsingResult.ParsingOK.Value)
         index.Info4 = IndexInfoParsingError.ParsingError;
     else
         index.Info4 = IndexInfoParsingError.ParsingCorrect;
 }