Discussion 2: Text Representation and Tokenization#
Session Plan#
Housekeeping β How is HW0 going? Questions or issues?
Exam Prep Material β New Exam Preparation page added to the textbook with study guidance and topic outlines
HW1 Released β Homework 1: Lopez-Lira, Tang (2023) is now available
Structure of News β Exploring how financial news is structured and what makes it useful for NLP
Words to Tokens β From raw text to model input: tokenization in practice
Embedding Analogies β Hands-on exploration of word embeddings and analogies
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