
Natural Language Processing With Python
Analyzing Text with the Natural Language Toolkit
by Edward Loper, Steven Bird, Ewan Klein · first published 2009
89% recommend11% neutral
Why HN recommends it
Practical introduction to NLP using Python and the NLTK library, with worked examples and exercises in each chapter; suits Python programmers new to natural language processing and those who want hands-on code.
Summarised by Claude from recommending comments
This book offers a highly accessible introduction to Natural Language Processing, the field that underpins a variety of language technologies ranging from predictive text and email filtering to automatic summarization and translation. You'll learn how to write Python programs to analyze the structure and meaning of texts, drawing on techniques from the fields of linguistics and artificial intelligence.
Affiliate links. As an Amazon Associate I earn from qualifying purchases.







Wow, thanks for mentioning my blog! I got into this using "Natural Language Processing with Python", which is basically an intro textbook for NLP that uses NLTK. I particularly like that they include example exercises in each chapter, because it can be otherwise challenging to see how particular techniques…
on “Ask HN: How Can I Get into NLP (Natural Language Processing)?” ↗…Retrieval. If you want something with the same concepts but a little less math, I liked Search Engine: Information Retrieval in Practice by Bruce Croft, et al as well. If you happen to be a python programmer, Natural Language Processing with Python by Steven Bird has some great examples of text processing.
on “Ask HN: How did you learn about search engines/text processing ?” ↗…Natural Language Understanding https://github.com/jacobeisenstein/gt-nlp-class * Georgia Tech Deep Learning For NLP in PyTorch https://github.com/rguthrie3/DeepLearningForNLPInPytorch And some books: * Natural Language Processing with Python https://www.amazon.com/Natural-Language-Processing-Python-An... * Foundations of Statistical Natural Language Processing https://www.amazon.com/Foundations-Statistical-Natural-Langu...
on “Ask HN: How to start with NLP” ↗…Processing) associated with the course. The Peter Norvig paper "How to write a Spell Corrector" (http://norvig.com/spell-correct.html) is very helpful. Since I am working with Python, I use the book "Natural Language Processing with Python" by Bird, Klein, and Loper and the Python NLTK. Finally I find that reading the documentation associated with the various speech systems to be very helpful. Vary to suit your needs. For instance, Alexa…
on “Ask HN: What are the challenges of building a personal assistant like Siri?” ↗…Goodfellow, Yoshua Bengio, and Aaron Courville Stage 3: Expanding Knowledge of AI Subfields Natural Language Processing (NLP): "Speech and Language Processing" by Daniel Jurafsky and James H. Martin "Natural Language Processing with Python" by Steven Bird, Ewan Klein, and Edward Loper Computer Vision: "Computer Vision: Algorithms and Applications" by Richard Szeliski "Deep Learning for Computer Vision" by Adrian Rosebrock Reinforcement…
on “Ask HN: I am a full stack developer, where do I start learning for AI” ↗Not sure if this is what you're looking for, but NLTK [natural language toolkit] is great. http://www.nltk.org/ Getting Started: http://nltk.googlecode.com/svn/trunk/doc/howto/index.html FAQ: http://www.nltk.org/faq The NLTK Book (free online): http://www.nltk.org/book NLTK Book Chapter 7 Extraction Information from Text: http://nltk.googlecode.com/svn/trunk/doc/book/ch07.html
on “Ask HN: Keyword extraction library recommendations?” ↗Someone's down-voted you without explanation, which is rather poor form. Entities in this case means extracting the text of the page - with nokogiri for example, or a variant of readability to get just the article - and then extracting things that are named in that text. I used a modded version of readability and a simple entity extractor in python on the article and got: 'Sudoku', 'Search', 'Goo
on “A note to Google recruiters (and on Google hiring practices)” ↗Yes, some NLP POS (part of speech) taggers do use context. I'm not entirely sure if they work in the way that you describe. I believe that they use the grammar of the sentence to derive what the tags over the sentence are. That is, they can tag the sentence on what they know and then iterate over the sentence until everything can fit into the grammar (or corpus) that it was trained on. If you wan
on “Ask HN: Are there any NLP projects that use context?” ↗agreed. i'm not sure why one would choose to implement an inadequate function here over against something like nltk (http://www.nltk.org/book/), which is excellent.
on “Toolz: A functional standard library for Python” ↗If anyone is interested in understanding NLP, starting with little knowledge, I found that the NLTK book was quite helpful: http://www.nltk.org/book/
on “SyntaxNet: Neural Models of Syntax” ↗Keep reading and practice with this book http://www.nltk.org/book_1ed/, when you will complete this book you will have a good understanding of NLP. Sample product to work on suggestion would include Implementing a classifier, For detail of it you can look at 13 chapter of http://nlp.stanford.edu/IR-book/pdf/irbookonlinereading.pdf Cover topics like Sentiment analysis, Document Summarisation etc
on “Ask HN: Needs advice on learning NLP” ↗I know NLTK isn't used for learning by itself, but it's such an essential player in the realm of NLP+Python that I think it should definitely be included (and that the list would be incomplete without it). The best link is probably http://www.nltk.org/book/ which is an excellent place to get started. You should probably also include the gensim package https://radimrehurek.com/gensim/, since it ha
on “The Best Machine Learning, NLP, and Python Tutorials I’ve Found” ↗For beginners there is also an on-line book: http://www.nltk.org/book
on “Python in the Scientific World” ↗Perhaps try this instead? http://www.nltk.org/book
on “Natural Language Processing for the Working Programmer” ↗Natural Language Processing With Python - http://www.nltk.org/book Handbook of Natural Language Processing - http://www.amazon.com/Handbook-Language-Processing-Learning-...
on “Ask HN: Good NLP Books for an experienced programmer” ↗