Implication example.

This commit is contained in:
kenkeiras 2017-05-24 20:13:42 +02:00
parent 22534160c9
commit d029ecd91d
2 changed files with 31 additions and 6 deletions

View file

@ -33,12 +33,14 @@ examples = [
("has-capacity", 'plane', 'fly')),
"answer": True,
}),
# {
# "text": "Is it hot during the summer?",
# "affirmation": "Is it hot during the summer?",
# "parsed": (),
# "answer": None,
# },
('full_example',
{
"text": "Is it hot during the summer?",
"affirmation": "it is hot during the summer",
"parsed": ("question",
("implies", 'summer', 'hot')),
"answer": True,
}),
# {
# "text": "is chile in south america ?",
# "affirmation": "is chile in south america ?",
@ -618,6 +620,12 @@ base_knowledge = {
'cold': {
"groups": {'property', 'temperature'},
},
'hot': {
"groups": {'property', 'temperature'},
},
'summer': {
"groups": {'epoch'},
},
'earth': {
"groups": {'noun', 'object', 'planet'},
},