Thanks to visit codestin.com
Credit goes to github.com

Skip to content

NLP Notebook: Languages #586

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

Merged
merged 5 commits into from
Jul 24, 2017
Merged

NLP Notebook: Languages #586

merged 5 commits into from
Jul 24, 2017

Conversation

antmarakis
Copy link
Collaborator

@antmarakis antmarakis commented Jul 16, 2017

Added a new section for languages in nlp.ipynb. I gave a quick overview of context-free grammars and probabilistic cfgs, then I gave an overview of lexicons and grammars and finally gave examples using our implementations.

  • Work on notebook, including an image for tree parsing.

  • Update test_nlp.py; added test for Grammar.

  • Update nlp.py comments.

EDIT: I added generate_random. Even though most of the generated sentences are pretty much gibberish and can be very long, I think it is interesting to see what kind of phrases a very simplistic grammar can generate.

PS: So far in the chapter I have only encountered CFGs (and PCFGs). So even though there are other types of languages, I have refrained from writing on them since the book seems to focus on CFGs. If that is not the case and later on I encounter other grammars, I will amend the relevant section to add the rest of the grammars.

@norvig
Copy link
Collaborator

norvig commented Jul 20, 2017

For now, just CFG and PCFG is good.

@antmarakis
Copy link
Collaborator Author

@norvig: OK great.

@norvig norvig merged commit 7734f8a into aimacode:master Jul 24, 2017
@antmarakis antmarakis deleted the patch-2 branch July 27, 2017 16:52
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.

2 participants