ElliotTheRobot / LILACS-mycroft-core

Mycroft Core, the Mycroft Artificial Intelligence platform - LILACS Fork
https://mycroft.ai
GNU General Public License v3.0
4 stars 1 forks source link

Question Tests #12

Closed JarbasAI closed 7 years ago

JarbasAI commented 7 years ago

We should make a standard test helper method for all kinds of questions, later on parsing utterances will be reduced to choosing the right question

what questions can be made, and how to answer them with this architecture?

Is this an example of that ?

            flag = crawler.drunk_crawl(start, target)
            self.log.info("crawl from " + start + "to " + target + "is: " + str(flag))
            self.speak("answer to is " + start + " a " + target + " is " + str(flag))

Give examples of this:

            start_node = key
            crawler.drunk_crawl(start_node, "no target crawl", direction="childs")
            for example in crawler.crawled:
                self.speak(example + " is an example of " + start_node)

What does this have in common with that:

           crawler.drunk_crawl(start, target)
           p_crawl = crawler.crawled
           for node in p_crawl:
               flag = crawler.drunk_crawl(target, node)
               if flag:
                   self.speak(target + " are " + node + " like " + start)

output example:

2017-04-07 23:02:00,915 - CLIClient - INFO - Speak: answer to is joana a frog is False 2017-04-07 23:02:00,929 - CLIClient - INFO - Speak: frog are animal like joana 2017-04-07 23:02:00,939 - CLIClient - INFO - Speak: frog are living being like joana 2017-04-07 23:02:00,945 - CLIClient - INFO - Speak: frog is an example of frog 2017-04-07 23:02:00,959 - CLIClient - INFO - Speak: answer to is joana a living being is True 2017-04-07 23:02:00,981 - CLIClient - INFO - Speak: living being is an example of living being 2017-04-07 23:02:00,981 - CLIClient - INFO - Speak: animal is an example of living being 2017-04-07 23:02:00,981 - CLIClient - INFO - Speak: insect is an example of living being 2017-04-07 23:02:00,985 - CLIClient - INFO - Speak: spider is an example of living being 2017-04-07 23:02:00,992 - CLIClient - INFO - Speak: frog is an example of living being 2017-04-07 23:02:00,993 - CLIClient - INFO - Speak: dog is an example of living being 2017-04-07 23:02:00,994 - CLIClient - INFO - Speak: cat is an example of living being 2017-04-07 23:02:00,995 - CLIClient - INFO - Speak: cow is an example of living being 2017-04-07 23:02:00,997 - CLIClient - INFO - Speak: human is an example of living being 2017-04-07 23:02:01,002 - CLIClient - INFO - Speak: human_male is an example of living being 2017-04-07 23:02:01,003 - CLIClient - INFO - Speak: maria is an example of living being 2017-04-07 23:02:01,004 - CLIClient - INFO - Speak: human_wife is an example of living being 2017-04-07 23:02:01,006 - CLIClient - INFO - Speak: human_female is an example of living being 2017-04-07 23:02:01,007 - CLIClient - INFO - Speak: joana is an example of living being 2017-04-07 23:02:01,008 - CLIClient - INFO - Speak: answer to is joana a mammal is True 2017-04-07 23:02:01,013 - CLIClient - INFO - Speak: mammal is an example of mammal 2017-04-07 23:02:01,017 - CLIClient - INFO - Speak: human is an example of mammal 2017-04-07 23:02:01,020 - CLIClient - INFO - Speak: maria is an example of mammal 2017-04-07 23:02:01,022 - CLIClient - INFO - Speak: human_wife is an example of mammal 2017-04-07 23:02:01,025 - CLIClient - INFO - Speak: human_female is an example of mammal 2017-04-07 23:02:01,029 - CLIClient - INFO - Speak: joana is an example of mammal 2017-04-07 23:02:01,030 - CLIClient - INFO - Speak: human_male is an example of mammal 2017-04-07 23:02:01,046 - CLIClient - INFO - Speak: answer to is joana a maria is False 2017-04-07 23:02:01,061 - CLIClient - INFO - Speak: maria are human like joana 2017-04-07 23:02:01,067 - CLIClient - INFO - Speak: maria are animal like joana 2017-04-07 23:02:01,075 - CLIClient - INFO - Speak: maria are living being like joana 2017-04-07 23:02:01,080 - CLIClient - INFO - Speak: maria are mammal like joana 2017-04-07 23:02:01,085 - CLIClient - INFO - Speak: maria is an example of maria 2017-04-07 23:02:01,088 - CLIClient - INFO - Speak: human_wife is an example of maria

JarbasAI commented 7 years ago

A template skill was added using the less common changes and including basic questions prototype

suggestions for more questions are welcome