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

ZeroDivisionError test_phrase_grammar #17

Open
L0ittle opened this issue Sep 6, 2019 · 5 comments
Open

ZeroDivisionError test_phrase_grammar #17

L0ittle opened this issue Sep 6, 2019 · 5 comments

Comments

@L0ittle
Copy link

L0ittle commented Sep 6, 2019

Hi,when I run the test_phrase_grammar.py ,I will get this return like following:

ZeroDivisionError: float division by zero

This is the specific error:
image

@shawntan
Copy link
Collaborator

shawntan commented Sep 8, 2019

You may need to obtain the PennTreebank parse trees before running test_phrase_grammar.py

@L0ittle
Copy link
Author

L0ittle commented Sep 9, 2019

You may need to obtain the PennTreebank parse trees before running test_phrase_grammar.py

Thank you a lot. And I thought I have downloaded the PTB like following:
image
But It seems that these data don't work, I'm confused. Can you tell me whether this file I have download through CSDN is right? And I have no membership in Treebank Official site, what should I do?

@Sunzheng-Hub
Copy link

we can get two Parsed subsets of Penn Treebank for free.
http://www.nltk.org/nltk_data/

@JIAZhenZ
Copy link

I wonder how can I get a parse tree, hope for answering, thanks

@shawntan
Copy link
Collaborator

You'll have to get it from LDC https://catalog.ldc.upenn.edu/LDC99T42

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

4 participants