Discussion 2: Text Representation and Tokenization

Contents

Discussion 2: Text Representation and Tokenization#

Session Plan#

  1. Housekeeping β€” How is HW0 going? Questions or issues?

  2. Exam Prep Material β€” New Exam Preparation page added to the textbook with study guidance and topic outlines

  3. HW1 Released β€” Homework 1: Lopez-Lira, Tang (2023) is now available

  4. Structure of News β€” Exploring how financial news is structured and what makes it useful for NLP

  5. Words to Tokens β€” From raw text to model input: tokenization in practice

  6. Embedding Analogies β€” Hands-on exploration of word embeddings and analogies

  7. HW1 Review: Headline Coverage and Model Performance β€” When you don’t have enough headlines, strategy performance suffers. We’ll look at how to diagnose this by running a local model on both a smaller sample and the fuller sample and comparing results. See the Replication Results notebook for the full comparison.

Topics#

  • Structure of Financial News β€” What makes news text useful for quantitative analysis and how it is typically structured

  • AI Copilots Intro β€” Getting started with Claude Code and Cursor for AI-assisted development

  • Words to Tokens β€” How tokenizers convert text into the numerical representations that models consume

  • Embedding Analogies β€” Exploring semantic relationships captured by word embeddings