Lexicon Class which is used to act as a Triple store contains Literals and Predicates that match words in the Question it has two main functions Getpredicates , GetLiterals which returns the matching literals and predicates objects
コード例 #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;
        }
コード例 #2
0
ファイル: answerGenerator.cs プロジェクト: AliHosny/weet-it
 /// <summary>
 /// class constructor
 /// </summary>
 public answerGenerator()
 {
     lexicon = new Lexicon();
 }