Chapter 7

Using Natural Language Tools in Forensics

Abstract

This chapter provides a practical introduction to Natural Language Processing (NLP) in Python. I leverage the Natural Language Toolkit (NLTK) to provide a basis for both experimentation and practical application of NLP using Python. A new Python application, NLTKQuery is created along with an extensible classNLTKQuery that can be used as a basis for new exploration into NLP.

Keywords

Natural Language Processing

Natural Language Toolkit

Gutenberg

Alan Turing

O.J. Simpson

Corpus

Concordance

Collocations

Vocabulary

Get Python Forensics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.