Created
June 26, 2014 18:54
-
-
Save nickretallack/d72c9f668dab9cf1f25d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> 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