Add new GAC100 test example.
This commit is contained in:
parent
dad1ef6fd8
commit
b16df096d7
@ -86,22 +86,25 @@ examples = [
|
||||
lambda knowledge: _assert('man' in knowledge.knowledge['socrates']['groups'])
|
||||
),],
|
||||
}),
|
||||
('full_example',{
|
||||
"text": "Computers use electricity?",
|
||||
"affirmation": "Computers use electricity",
|
||||
"parsed": ("question",
|
||||
('perform-verb-over-object', 'computers', 'use', 'electricity')),
|
||||
"answer": True,
|
||||
"after_execution": [(
|
||||
lambda knowledge: print("->", knowledge.knowledge['computers'])
|
||||
),],
|
||||
}),
|
||||
# {
|
||||
# "text": "The dominant language in france is french?",
|
||||
# "affirmation": "The dominant language in france is french?",
|
||||
# "parsed": (),
|
||||
# "answer": None,
|
||||
# },
|
||||
('full_example',
|
||||
{
|
||||
"text": "Computers use electricity?",
|
||||
"affirmation": "Computers use electricity",
|
||||
"parsed": ("question",
|
||||
('perform-verb-over-object', 'computers', 'use', 'electricity')),
|
||||
"answer": True,
|
||||
"after_execution": [(
|
||||
lambda knowledge: print("->", knowledge.knowledge['computers'])
|
||||
),],
|
||||
}),
|
||||
('full_example',
|
||||
{
|
||||
"text": "The dominant language in france is french?",
|
||||
"affirmation": "The dominant language in france is french",
|
||||
"parsed": ("question",
|
||||
("property-has-value", "france", "dominant-language", "french")),
|
||||
"answer": True,
|
||||
}),
|
||||
# {
|
||||
# "text": "was abraham lincoln once president of the united states?",
|
||||
# "affirmation": "was abraham lincoln once president of the united states?",
|
||||
@ -684,6 +687,9 @@ base_knowledge = {
|
||||
'electricity': {
|
||||
"groups": {'power'},
|
||||
},
|
||||
'french': {
|
||||
"groups": {'language'},
|
||||
}
|
||||
}
|
||||
|
||||
def main():
|
||||
|
Loading…
Reference in New Issue
Block a user