Closed JarbasAI closed 7 years ago
single word queries also produce useful output
question: mars
answer: Mars (planet) : current distance from Earth, 2.328 au, 19.36 light minutes, average distance from Earth, 1.7 au, 14.1 light minutes, current distance from Sun, 1.535 au, 12.77 light minutes, largest distance from orbit center, 2.4922873×10^8 km, 1.66599116 au, nearest distance from orbit center, 2.06644545×10^8 km, 1.38133346 au, orbital period, 1.8808476 a
question_type: unknown
center_node: mars
target_node:
parents: {u'earth': [u'celestialbody', u'planet'], u'mars': [u'celestialbody', u'planet']}
relevant_nodes: [u'orbital period', u'light', u'average', u'orbit', u'planet', u'au', u'mars', u'earth', u'sun']
synonims: {u'planet': u'extrasolar planet', u'average': u'arithmetic mean', u'au': u'astronomical unit'}
question: frog
answer: frogs, toads... (animals) is Anura
question_type: unknown
center_node: frog
target_node:
parents: {u'toads': [u'species', u'eukaryote', u'animal', u'amphibian'], u'animals': [u'species', u'eukaryote', u'animal']}
relevant_nodes: [u'frogs', u'anura', u'toads', u'animals']
synonims: {u'anura': u'frog'}
question: cat
answer: domestic cat (animal) is Felis catus
question_type: unknown
center_node: cat
target_node:
parents: {u'domestic cat': [u'species', u'eukaryote', u'animal', u'mammal'], u'animal': [u'species', u'eukaryote', u'animal'], u'felis catus': [u'species', u'eukaryote', u'animal', u'mammal'], u'cat': [u'species', u'eukaryote', u'animal', u'mammal']}
relevant_nodes: [u'domestic cat', u'felis catus', u'animal']
synonims: {}
perhaps we can parse the sentence and add whateve comes after is as a parent
with our achitecture it makes more sense to have wolphram alpha as a backend than a skill, refactoring wolfram alpha skill into backend is needed
a wolfram backend is in place that mimics wolfram alpha skill (without using mycoft api yet)
using the question parser we can get a few more nodes