Add property-has-value example.

This commit is contained in:
kenkeiras 2017-05-24 20:42:15 +02:00
parent bbba6b75e1
commit a99449c04a
2 changed files with 30 additions and 6 deletions

View file

@ -41,12 +41,14 @@ examples = [
("implies", 'summer', 'hot')),
"answer": True,
}),
# {
# "text": "is chile in south america ?",
# "affirmation": "is chile in south america ?",
# "parsed": (),
# "answer": None,
# },
('full_example',
{
"text": "is chile in south america ?",
"affirmation": "chile is in south america",
"parsed": ("question",
("property-has-value", 'chile', 'location', 'south america')),
"answer": True,
}),
# {
# "text": "Was Socrates a man?",
# "affirmation": "Was Socrates a man?",
@ -641,6 +643,9 @@ base_knowledge = {
'fly': {
"groups": {'verb'},
},
'chile': {
"groups": {'noun'},
}
}
def main():