From a928bc46e751084650062914235d3b80c80553a5 Mon Sep 17 00:00:00 2001 From: chabhishek123 Date: Sat, 24 Sep 2016 10:16:35 -0700 Subject: [PATCH] Fixing the attribute error on tree --- client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.py b/client.py index 11097ce..7ea3501 100644 --- a/client.py +++ b/client.py @@ -15,5 +15,5 @@ def parse(self, text): pprint(result) from nltk.tree import Tree -tree = Tree.parse(result['sentences'][0]['parsetree']) +tree = Tree.fromstring(result['sentences'][0]['parsetree']) pprint(tree)