Permalink
Browse files

bugfix

  • Loading branch information...
Gabor Recski
Gabor Recski committed Oct 3, 2017
1 parent a018234 commit 2f507d22930df523703cb83b3e5348283e2a8354
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/fourlang/utils.py
@@ -51,6 +51,8 @@ def print_4lang_graphs(lexicon, graph_dir):


def print_4lang_graph(word, machine, graph_dir, max_depth=None):
if machine is None:
return
graph = MachineGraph.create_from_machines([machine], max_depth=max_depth)
fn = os.path.join(graph_dir, u"{0}.dot".format(word)).encode('utf-8')
with open(fn, 'w') as dot_obj:

0 comments on commit 2f507d2

Please sign in to comment.