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

Missing steps in the code #2

Open
maiskovich opened this issue Mar 24, 2020 · 1 comment
Open

Missing steps in the code #2

maiskovich opened this issue Mar 24, 2020 · 1 comment

Comments

@maiskovich
Copy link

While running I get AttributeError: 'str' object has no attribute 'subtrees'

In the example the code just pass a string and then do for s in t.subtrees(lambda t: t.label() == 'NP'): without parsing or anything like that which results in the error described above

@HichemBouric
Copy link

Yes.. it's definetly missing.. you have to fill the gaps on your own

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