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)