Add property-has-value example.
This commit is contained in:
parent
bbba6b75e1
commit
a99449c04a
2 changed files with 30 additions and 6 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue