Ordered-Neurons icon indicating copy to clipboard operation
Ordered-Neurons copied to clipboard

ZeroDivisionError test_phrase_grammar

Open L0ittle opened this issue 5 years ago • 5 comments

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

L0ittle avatar Sep 06 '19 07:09 L0ittle

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

shawntan avatar Sep 08 '19 20:09 shawntan

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?

L0ittle avatar Sep 09 '19 03:09 L0ittle

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

Sunzheng-Hub avatar Jun 22 '20 10:06 Sunzheng-Hub

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

JIAZhenZ avatar May 18 '21 13:05 JIAZhenZ

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

shawntan avatar May 24 '21 15:05 shawntan