Add new GAC100 test example.
This commit is contained in:
parent
dad1ef6fd8
commit
b16df096d7
@ -86,7 +86,8 @@ examples = [
|
|||||||
lambda knowledge: _assert('man' in knowledge.knowledge['socrates']['groups'])
|
lambda knowledge: _assert('man' in knowledge.knowledge['socrates']['groups'])
|
||||||
),],
|
),],
|
||||||
}),
|
}),
|
||||||
('full_example',{
|
('full_example',
|
||||||
|
{
|
||||||
"text": "Computers use electricity?",
|
"text": "Computers use electricity?",
|
||||||
"affirmation": "Computers use electricity",
|
"affirmation": "Computers use electricity",
|
||||||
"parsed": ("question",
|
"parsed": ("question",
|
||||||
@ -96,12 +97,14 @@ examples = [
|
|||||||
lambda knowledge: print("->", knowledge.knowledge['computers'])
|
lambda knowledge: print("->", knowledge.knowledge['computers'])
|
||||||
),],
|
),],
|
||||||
}),
|
}),
|
||||||
# {
|
('full_example',
|
||||||
# "text": "The dominant language in france is french?",
|
{
|
||||||
# "affirmation": "The dominant language in france is french?",
|
"text": "The dominant language in france is french?",
|
||||||
# "parsed": (),
|
"affirmation": "The dominant language in france is french",
|
||||||
# "answer": None,
|
"parsed": ("question",
|
||||||
# },
|
("property-has-value", "france", "dominant-language", "french")),
|
||||||
|
"answer": True,
|
||||||
|
}),
|
||||||
# {
|
# {
|
||||||
# "text": "was abraham lincoln once president of the united states?",
|
# "text": "was abraham lincoln once president of the united states?",
|
||||||
# "affirmation": "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': {
|
'electricity': {
|
||||||
"groups": {'power'},
|
"groups": {'power'},
|
||||||
},
|
},
|
||||||
|
'french': {
|
||||||
|
"groups": {'language'},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
Loading…
Reference in New Issue
Block a user