public void GetAnswerSequence()
        {
            MatchWordsInSentences();
            DisplayResult d = new DisplayResult();

            d.ShowResult(colQARank, inputData.answer);
        }
Beispiel #2
0
        public void MatchWordsInSentences(ParagraphQA inputData)
        {
            // Get words from sentences
            SentenceMaker sf = new SentenceMaker();

            sf.SplitSentence(inputData.paragraph, clsConstant.StringSplitPattern.sentenceForm);

            foreach (var sentence in sf.sentences)
            {
                Tokenizer TSentence = new Tokenizer();
                GetTokens(TSentence, sentence);
                MatchQuestionAndAnswer(inputData, TSentence, sentence);
            }

            DisplayResult d = new DisplayResult();

            d.ShowResult(colQARank, inputData.answer);
        }