Skip to content

Instantly share code, notes, and snippets.

@nickretallack
Created June 26, 2014 18:54
Show Gist options
  • Save nickretallack/d72c9f668dab9cf1f25d to your computer and use it in GitHub Desktop.
Save nickretallack/d72c9f668dab9cf1f25d to your computer and use it in GitHub Desktop.
>>> parser.raw_parse_sents(("the quick brown fox jumps over the lazy dog", "the quick grey wolf jumps over the lazy fox"))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "nltk/parse/stanford.py", line 176, in raw_parse_sents
return self._parse_trees_output(self._execute(cmd, '\n'.join(sentences), verbose))
File "nltk/parse/stanford.py", line 106, in _parse_trees_output
res.append(Tree('\n'.join(cur_lines)))
File "nltk/tree.py", line 99, in __init__
% type(self).__name__)
TypeError: Tree: Expected a node value and child list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment