«
module documentation

This module brings together a variety of NLTK functionality for text analysis, and provides simple, interactive interfaces. Functionality includes: concordancing, collocation discovery, regular expression search over tokenized strings, and distributional similarity.

Class ConcordanceIndex An index that can be used to look up the offset locations at which a given word occurs in a document.
Class ContextIndex A bidirectional index between words and their 'contexts' in a text. The context of a word is usually defined to be the words that occur in a fixed window around the word; but other definitions may also be used by providing a custom context function.
Class Text A wrapper around a sequence of simple (string) tokens, which is intended to support initial exploration of texts (via the interactive console). Its methods perform a variety of analyses on the text's contexts (e...
Class TextCollection A collection of texts, which can be loaded with list of texts, or with a corpus consisting of one or more texts, and which supports counting, concordancing, collocation discovery, etc. Initialize a TextCollection as follows:...
Class TokenSearcher A class that makes it easier to use regular expressions to search over tokenized strings. The tokenized string is converted to a string where tokens are marked with angle brackets -- e.g., '<the><window><is><still><open>'...
Function demo Undocumented
Variable ConcordanceLine Undocumented
def demo(): (source)

Undocumented

ConcordanceLine = (source)

Undocumented