Unlock 7th GAC 100.
This commit is contained in:
parent
9ed43aa362
commit
a7f70d2888
@ -69,13 +69,21 @@ examples = [
|
||||
"parsed": ("question",
|
||||
("property-has-value", 'chile', 'location', 'south america')),
|
||||
"answer": True,
|
||||
"after_execution": [(
|
||||
lambda knowledge: _assert('south america' in knowledge.knowledge['chile']['location'])
|
||||
),],
|
||||
}),
|
||||
('full_example',
|
||||
{
|
||||
"text": "Was Socrates a man?",
|
||||
"affirmation": "Socrates was a man",
|
||||
"parsed": ("question",
|
||||
("pertenence-to-group", 'socrates', 'man')),
|
||||
"answer": True,
|
||||
"after_execution": [(
|
||||
lambda knowledge: _assert('man' in knowledge.knowledge['socrates']['groups'])
|
||||
),],
|
||||
}),
|
||||
# {
|
||||
# "text": "Was Socrates a man?",
|
||||
# "affirmation": "Was Socrates a man?",
|
||||
# "parsed": (),
|
||||
# "answer": None,
|
||||
# },
|
||||
# {
|
||||
# "text": "Computers use electricity?",
|
||||
# "affirmation": "Computers use electricity?",
|
||||
@ -666,7 +674,7 @@ base_knowledge = {
|
||||
},
|
||||
'chile': {
|
||||
"groups": {'noun'},
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
def main():
|
||||
|
Loading…
Reference in New Issue
Block a user