nielklug commited on
Commit
15697ac
·
1 Parent(s): 1542342
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,9 +35,9 @@ if text:
35
 
36
  # Convert the bracket parse tree into an NLTK Tree
37
 
38
- t = Tree.fromstring(' '.join(word.split('-')[0] for word in parse_tree.split()))
39
 
40
- tree_svg = TreePrettyPrinter(t).svg(nodecolor='black', leafcolor='black', funccolor='black')
41
 
42
  col1 = st.columns(1)[0]
43
  col1.header("POS tagging result:")
 
35
 
36
  # Convert the bracket parse tree into an NLTK Tree
37
 
38
+ # t = Tree.fromstring(' '.join(word.split('-')[0] for word in parse_tree.split()))
39
 
40
+ tree_svg = TreePrettyPrinter(parse_tree).svg(nodecolor='black', leafcolor='black', funccolor='black')
41
 
42
  col1 = st.columns(1)[0]
43
  col1.header("POS tagging result:")