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

Add chomsky_normal_form for CFGs #2260

Merged
merged 2 commits into from
Apr 14, 2019
Merged

Conversation

virresh
Copy link
Contributor

@virresh virresh commented Mar 31, 2019

#1884

Am a bit unfamiliar with tox style of tests
Would be happy to add a CKY implementation and test the grammar converter as well if someone can guide me to the correct files for including tests and a parser

@virresh
Copy link
Contributor Author

virresh commented Mar 31, 2019

Also in the Contribution Guidelines, it was written to follow Pep8, but while coding I observed pep8 is not followed uniformly, is there any subset of rules used from Pep8?

O/w maybe we can enforce a Pep8 check via a linter?

@stevenbird
Copy link
Member

@virresh - thanks for the contribution; are you able to take a look in the nltk/test directory for examples of approaches to testing please?

Added unittest for to_chomsky_normal_form()
@virresh
Copy link
Contributor Author

virresh commented Apr 4, 2019

Hello
I've added two unit tests, not sure how to go about the doctests though
Also rebased my branch for confllct resolution

@stevenbird stevenbird merged commit ab3f193 into nltk:develop Apr 14, 2019
@stevenbird
Copy link
Member

Thanks @virresh

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

Successfully merging this pull request may close these issues.

None yet

2 participants