Skip to content

Commit 754ccd9

Browse files
authored
Removed comments from graphviz generation
1 parent 64d6256 commit 754ccd9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Chapter-3/dependency_parsing.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,12 @@
4242
print dep_tree
4343
dep_tree.draw()
4444

45-
'''
46-
# code for generation of annotated dependency tree shown in Figure 3-4
45+
# generation of annotated dependency tree shown in Figure 3-4
4746
from graphviz import Source
4847
dep_tree_dot_repr = [parse for parse in result][0].to_dot()
4948
source = Source(dep_tree_dot_repr, filename="dep_tree", format="png")
5049
source.view()
51-
'''
52-
50+
5351
import nltk
5452
tokens = nltk.word_tokenize(sentence)
5553

0 commit comments

Comments
 (0)