Spaces:
Sleeping
Sleeping
update
Browse files
app.py
CHANGED
@@ -35,7 +35,8 @@ if text:
|
|
35 |
|
36 |
# Convert the bracket parse tree into an NLTK Tree
|
37 |
mod_tree = parse_tree.replace("$(", "$LRB").replace("$)", "$RRB")
|
38 |
-
t = Tree.fromstring(re.sub(r'(-\w+)+', '', mod_tree))
|
|
|
39 |
|
40 |
tree_svg = TreePrettyPrinter(t).svg(nodecolor='black', leafcolor='black', funccolor='black')
|
41 |
|
|
|
35 |
|
36 |
# Convert the bracket parse tree into an NLTK Tree
|
37 |
mod_tree = parse_tree.replace("$(", "$LRB").replace("$)", "$RRB")
|
38 |
+
# t = Tree.fromstring(re.sub(r'(-\w+)+', '', mod_tree))
|
39 |
+
t = Tree.fromstring(parse_tree)
|
40 |
|
41 |
tree_svg = TreePrettyPrinter(t).svg(nodecolor='black', leafcolor='black', funccolor='black')
|
42 |
|