Add interpretation phase to shallow (1 level) nested structures.

This commit is contained in:
kenkeiras 2017-05-16 22:46:22 +02:00
parent 5f6b067e17
commit 42cb4cb8f1
3 changed files with 143 additions and 18 deletions

View file

@ -48,6 +48,7 @@ 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)
result = knowledge_evaluation.integrate_information(self.knowledge,
{