Skip to main content

FNLP - top navigation

  • Learn
  • Piazza
  • DRPS

Breadcrumb

  1. Home
  2. FNLP: Foundations of Natural Language Processing
  3. FNLP: Course Materials
  4. FNLP: Week 3: Important ML techniques for NLP

FNLP: 9: Text Classification with Naive Bayes and Logistic Regression

This page introduces you to text classification and describes two classic machine learning approaches to the task, Naive Bayes and Logistic Regression (aka MaxEnt classifiers).  It consists of lecture slides, required readings from Jurafsky and Martin, and a quiz that tests your understanding of the material presented here.

As always, if there is anything you don't understand, then please ask questions in the lecture or on piazza.

Lecture slides & reading

Slides

Required reading: 3rd Online Edition of Jurafsky and Martin, chapters 4 (4.1- 4.6) https://web.stanford.edu/~jurafsky/slp3/

Quiz 9: Text classifiers

These questions are designed to test your understanding of the above course content; doing this quiz does not contribute to your overall grade.  Some questions require a text answer.  You can ask for formative feedback on these from your tutor or on piazza.  Other questions are multiple choice or they require a numeric answer: you will get immediate feedback for these. Please don't attempt this quiz until you have acquainted yourself with this lecture and the required reading.

You must be logged onto Learn to do this quiz.

License
All rights reserved The University of Edinburgh

Book traversal links for FNLP: 9: Text Classification with Naive Bayes and Logistic Regression

  • FNLP: 8: Spelling Correction, Edit Distance and Expectation Maximisation
  • Up
  • FNLP: Week 4: More ML methods, Morphology and POS tagging

Navigation links

  • FNLP: Resource List
  • FNLP: Assessment
  • FNLP: Course Materials
    • FNLP: Week 1: Overview, Ambiguity and Corpora
    • FNLP: Week 2: Annotation, Evaluation and Language Models
    • FNLP: Week 3: Important ML techniques for NLP
      • FNLP: 7: More Smoothing and the Noisy Channel Model
      • FNLP: 8: Spelling Correction, Edit Distance and Expectation Maximisation
      • FNLP: 9: Text Classification with Naive Bayes and Logistic Regression
    • FNLP: Week 4: More ML methods, Morphology and POS tagging
    • FNLP: Week 5: POS Tagging, Context Free Grammars and Parsing
    • FNLP: Week 6: More Parsing and Compositional Semantics
    • FNLP: Week 7: Discourse Semantics and Lexical Semantics
    • FNLP: Week 8: Deep Learning for NLP
    • FNLP: Week 9: Neural Text Generation
    • FNLP Week 10: Transfer learning, Revision and Q&A
  • FNLP: Lab Exercises
  • FNLP: Tutorial Exercises
RSS feed

Opencourse privacy & accessibility statements; contact Informatics, ILTS.