Add perform-verb-over-object and (failing) test.
This commit is contained in:
parent
e0a5f02c34
commit
aa7bee4c8b
2 changed files with 34 additions and 6 deletions
|
@ -85,12 +85,13 @@ examples = [
|
|||
lambda knowledge: _assert('man' in knowledge.knowledge['socrates']['groups'])
|
||||
),],
|
||||
}),
|
||||
# {
|
||||
# "text": "Computers use electricity?",
|
||||
# "affirmation": "Computers use electricity?",
|
||||
# "parsed": (),
|
||||
# "answer": None,
|
||||
# },
|
||||
('full_example',{
|
||||
"text": "Computers use electricity?",
|
||||
"affirmation": "Computers use electricity",
|
||||
"parsed": ("question",
|
||||
('perform-verb-over-object', 'computers', 'use', 'electricity')),
|
||||
"answer": True,
|
||||
}),
|
||||
# {
|
||||
# "text": "The dominant language in france is french?",
|
||||
# "affirmation": "The dominant language in france is french?",
|
||||
|
@ -664,6 +665,12 @@ base_knowledge = {
|
|||
'fly': {
|
||||
"groups": {'verb'},
|
||||
},
|
||||
'use': {
|
||||
"groups": {'verb'},
|
||||
},
|
||||
'electricity': {
|
||||
"groups": {},
|
||||
},
|
||||
}
|
||||
|
||||
def main():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue