Fix exploration of multiple options on a sub-level.
This commit is contained in:
parent
ce7b50e023
commit
63227c4f3e
3 changed files with 144 additions and 67 deletions
|
@ -49,11 +49,10 @@ class KnowledgeBase(object):
|
|||
def process(self, row):
|
||||
knowledge_before = copy.deepcopy(self.knowledge)
|
||||
print("\x1b[7;32m> {} \x1b[0m".format(row))
|
||||
tokens, decomposition, inferred_tree = parsing.get_fit(self, row)
|
||||
tokens, inferred_tree = parsing.get_fit(self, row)
|
||||
result = knowledge_evaluation.integrate_information(self.knowledge,
|
||||
{
|
||||
"elements": tokens,
|
||||
"decomposition": decomposition,
|
||||
"parsed": inferred_tree,
|
||||
})
|
||||
self.act_upon(result)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue