1 / 7

NLTK

NLTK. Natural Language ToolKit (www.nltk.org). What is nltk ?. A tool which allows you to do NLP stuff such as Finding similar words in context, POS tagging etc.

sakina
Download Presentation

NLTK

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. NLTK Natural Language ToolKit (www.nltk.org)

  2. What is nltk? • A tool which allows you to do NLP stuff such as Finding similar words in context, POS tagging etc. • We’ll be using nltk to write custom CFGs for the set of given sentences and produce parse trees for those sentences to check the accuracy of the grammar.

  3. Download and Install (On your local machine) • http://www.nltk.org/download • .msi installation for windows • TarBall for Linux • .dmg for Mac

  4. NLTK is installed on the cs4705 account • To use this, add this line in the $HOME/.profile file in your CS account – • export PYTHONPATH=/home/cs4705/nltk-2.0b5 Then, either restart the shell or do • knl2102@helsinki /home/cs4705 $ . $HOME/.profile

  5. Bringing up the GUI for Chart Parser nltk.app.chartparser()

  6. Loading the grammar

  7. Stepping through the parse • To view the parse step by step, check the “Step” checkbox in the lower right corner. • To view the final parse without stepping through, uncheck “Step”

More Related