Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion of NLTK tree to PTB format #11

Closed
anirudh708 opened this issue Jun 11, 2015 · 1 comment
Closed

Conversion of NLTK tree to PTB format #11

anirudh708 opened this issue Jun 11, 2015 · 1 comment

Comments

@anirudh708
Copy link

The convert_tree() function is not able to form dependencies for a nltk tree and an alternate conversion from nltk to ptb doesnt work

[via http://stackoverflow.com/a/29614388/1118542]

@dmcc
Copy link
Owner

dmcc commented Jun 11, 2015

Thanks for the report. convert_tree() isn't designed to take NLTK Tree objects as arguments -- only strings of Penn Treebank trees (though it's easy to convert a Tree to this type of string with str()).

If you're using the Subprocess backend, there's a debug=True flag that you can pass to convert_tree() which may provide additional information.

If this doesn't help, please provide more details (ideally the whole sequence of PyStanfordDependencies related commands including which backend, version of SD, the string of the tree you want to convert, etc.).

@dmcc dmcc closed this as completed Jul 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants