Fix the dirty log level flag.
This commit is contained in:
parent
c1055bd703
commit
0e41a98857
@ -97,7 +97,7 @@ def integrate_language(knowledge_base, example):
|
|||||||
break
|
break
|
||||||
|
|
||||||
for position, atom in lower_levels:
|
for position, atom in lower_levels:
|
||||||
with session().log(atom):
|
with session().log("Atom {}".format(atom)):
|
||||||
similar = get_similar_tree(knowledge_base, atom, tokens)
|
similar = get_similar_tree(knowledge_base, atom, tokens)
|
||||||
remix, (start_bounds, end_bounds) = build_remix_matrix(knowledge_base, tokens, atom, similar)
|
remix, (start_bounds, end_bounds) = build_remix_matrix(knowledge_base, tokens, atom, similar)
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ class OrgModeSession:
|
|||||||
def annotate(self, annotation):
|
def annotate(self, annotation):
|
||||||
if self.dirty:
|
if self.dirty:
|
||||||
self.f.write("{indentation} {data}\n".format(
|
self.f.write("{indentation} {data}\n".format(
|
||||||
indentation='*' * (self.level + 2),
|
indentation='*' * (self.level + 1),
|
||||||
data="---"))
|
data="---"))
|
||||||
self.dirty = False
|
self.dirty = False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user