Exemplo n.º 1
0
        public List<questionAnswer> GetAnswerWithQuestionStructure(string question)
        {
            Lexicon mylexicon = new Lexicon();

            answerGenerator answerGenerator = new answerGenerator();

            List<QueryBucket> queries = answerGenerator.generateQueries(question);

            List<questionAnswer> answers = answerGenerator.executeQueries(queries);

            return answers;
        }
Exemplo n.º 2
0
        public List <questionAnswer> GetAnswerWithQuestionStructure(string question)
        {
            Lexicon mylexicon = new Lexicon();

            answerGenerator answerGenerator = new answerGenerator();

            List <QueryBucket> queries = answerGenerator.generateQueries(question);

            List <questionAnswer> answers = answerGenerator.executeQueries(queries);

            return(answers);
        }