Skip to content
Why GitHub?
Features
→
Code review
Project management
Integrations
Actions
Team management
Social coding
Documentation
Code hosting
Case Studies
→
Security
→
Enterprise
Explore
Explore GitHub
→
Learn & contribute
Topics
Collections
Trending
Learning Lab
Open source guides
Connect with others
Events
Community forum
GitHub Education
Marketplace
Pricing
Plans
→
Compare plans
Contact Sales
Nonprofit
→
Education
→
In this repository
All GitHub
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub
↵
Jump to
↵
In this repository
All GitHub
↵
Jump to
↵
Sign in
Sign up
Watch
7
Star
7
Fork
11
kornai
/
4lang
Code
Issues
49
Pull requests
0
Projects
0
Wiki
Insights
Permalink
Browse files
bugfix
Loading branch information
...
Gabor Recski
committed
Oct 3, 2017
1 parent
a018234
commit
2f507d22930df523703cb83b3e5348283e2a8354
Unified
Split
Showing
1 changed file
with
2 additions
and
0 deletions
.
+2
−0
src/fourlang/utils.py
Show comments
View file
2
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:
Toggle all file notes
0 comments on commit
2f507d2
Please
sign in
to comment.
You can’t perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
Press h to open a hovercard with more details.
0 comments on commit
2f507d2