Skip to main content

Breadcrumb

  1. Home
  2. FNLP: Foundations of Natural Language Processing
  3. FNLP: Course Materials

FNLP: Week 5: POS Tagging, Context Free Grammars and Parsing

Welcome to week 5 of FNLP.  This week we will continue to study POS tagging.  We will study how hidden Markov models (HMMs) can be used model POS tagging. We will also discuss how, in principle, HMMs can be applied to virtually any problem which can be framed as sequence labeling (though with variable success).  We will discuss the assumptions underlying HMMs and seeing how sensible they for the problem in question. We will then see how HMMs can be estimated from data. We will present an algorithm for predicting the most likely sequence of tags (Viterbi algorithm for HMM), computing the probability of observations/word sequence (Forward algorithm) and also sketch the estimation procedure for the unsupervised setting (Forward-Backward algorithm, an instance of EM). 

We'll then progress from POS tagging to sentential parsing. Parsing is the process of mapping a sentence to a representation of its syntactic form.  We will start with how you decide whether a sequence of words group together into a syntactic constituent.  We'll show how you can account for an unbounded number of well-formed NL sentences using a finite number of rules, in particular we'll present context-free grammars.  We then will discuss a parsing algorithm that, given a sequence of words and a context-free grammar, determines whether that string is grammatical, and also determines its syntactic representation(s).  

The number of representations is plural because of syntactic ambiguity.  In week 6, we will continue to study syntactic parsing, and in particular we will discuss how to use labelled data to resolve syntactic ambiguities.  

The content in the following pages is structured as follows:

13: PoS tagging / HMMs  
14: Context-free Grammars (CFGs) 
15: CKY Parsing

Each of the above includes the slides, required readings, and a post-lecture quiz.  The quiz is a chance for you to gauge your understanding of the material presented here, and so we strongly encourage you to review this content and then complete the quiz.  If there is anything you don't understand, then you have several options: 

  1. Post a question on piazza;
  2. Ask a question at the in person lectures; and/or
  3. Ask your tutor.
License
All rights reserved The University of Edinburgh
  • FNLP: 13: POS tagging (part 2: Viterbi, Forward algorithm)
  • FNLP: 14: Introduction to Syntax and Syntactic Parsing
  • FNLP: 15: Probabilistic Context-Free Grammars and Statistical Parsing

Book traversal links for FNLP: Week 5: POS Tagging, Context Free Grammars and Parsing

  • FNLP: 12: Part-of-Speech tagging
  • Up
  • FNLP: 13: POS tagging (part 2: Viterbi, Forward algorithm)

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: Week 4: More ML methods, Morphology and POS tagging
    • FNLP: Week 5: POS Tagging, Context Free Grammars and Parsing
      • FNLP: 13: POS tagging (part 2: Viterbi, Forward algorithm)
      • FNLP: 14: Introduction to Syntax and Syntactic Parsing
      • FNLP: 15: Probabilistic Context-Free Grammars and Statistical 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.