← Course overview

Sep. 25 · Tokens, normalization, and corpus choices

Session 2 · Text Preprocessing

Preprocessing decisions determine which parts of a text remain available for analysis.

Objective

By the end of class, you can apply and document a small set of preprocessing choices and explain how those choices change the text available for analysis.

Before class

See all R-foundation deadlines and marks →

Opening survey

The ungraded questions revisit corpus boundaries, units of analysis, and provenance. Attendance is recorded separately from correctness.

Device-free lecture

We will introduce tokens, tokenization, stopwords, normalization, filtering, and language-specific choices through one small corpus. The lecture distinguishes what researchers remove, retain, or transform from what the software later counts.

Laptop demonstration

Standard track · Orange

Build one documented workflow.

Corpus → Preprocess Text → Corpus Viewer

Compare the raw and processed text, change one setting at a time, and record what disappears or changes.

BA2 review track · R

Complete this assignment in R. Orange is not permitted for assessed work. Use the supplied starter script to import the same corpus, tokenize it, remove the supplied stopwords, and export a before-and-after comparison.

Demo 2 · Reproduce and document preprocessing

Due Oct. 1 at 17:00

Create demos/02-preprocessing/ with the following files.

Before you submit

The score records whether these items are complete. It does not reward a more sophisticated interpretation.