2.1 Accessing Text Corpora

As just mentioned, a text corpus is a large body of text. Many corpora are designed to
contain a careful balance of material in one or more genres. We examined some small
text collections in Chapter 1, such as the speeches known as the US Presidential Inau
gural Addresses. This particular corpus actually contains dozens of individual texts—
one per address—but for convenience we glued them end-to-end and treated them as
a single text. Chapter 1 also used various predefined texts that we accessed by typing
from book import *. However, since we want to be able to work with other texts, this
section examines a variety of text corpora. We’ll see how to select individual texts, and
how to work with them.

Leave a Reply

Your email address will not be published. Required fields are marked *