Automatic POS Tagging HMM Part-of-Speech Tagging
Part of Speech Tagging
Informatics 2A: Lecture 15 Mirella Lapata
School of Informatics University of Edinburgh
21 October 2011
Informatics 2A: Lecture 15 Part of Speech Tagging 1
Part of Speech Tagging Informatics 2A: Lecture 15 Mirella Lapata - - PowerPoint PPT Presentation
Automatic POS Tagging HMM Part-of-Speech Tagging Part of Speech Tagging Informatics 2A: Lecture 15 Mirella Lapata School of Informatics University of Edinburgh 21 October 2011 Informatics 2A: Lecture 15 Part of Speech Tagging 1 Automatic
Automatic POS Tagging HMM Part-of-Speech Tagging
Informatics 2A: Lecture 15 Part of Speech Tagging 1
Automatic POS Tagging HMM Part-of-Speech Tagging
Informatics 2A: Lecture 15 Part of Speech Tagging 2
Automatic POS Tagging HMM Part-of-Speech Tagging Motivation Corpus Annotation Tags and Tokens
1 Have you read ’The Wind in the Willows’? (noun) 2 The clock has stopped. Please wind it up. (verb) 3 The students tried to protest. (verb) 4 The students are pleased that their protest was successful.
Informatics 2A: Lecture 15 Part of Speech Tagging 3
Automatic POS Tagging HMM Part-of-Speech Tagging Motivation Corpus Annotation Tags and Tokens
1 CLAWS tag (used for BNC); 62 tags; 2 Brown tag (used for Brown corpus); 87 tags; 3 Penn tag set (used for the Penn Treebank); 45 tags. Informatics 2A: Lecture 15 Part of Speech Tagging 4
Automatic POS Tagging HMM Part-of-Speech Tagging Motivation Corpus Annotation Tags and Tokens
Informatics 2A: Lecture 15 Part of Speech Tagging 5
Automatic POS Tagging HMM Part-of-Speech Tagging Motivation Corpus Annotation Tags and Tokens
Informatics 2A: Lecture 15 Part of Speech Tagging 5
Automatic POS Tagging HMM Part-of-Speech Tagging Motivation Corpus Annotation Tags and Tokens
Informatics 2A: Lecture 15 Part of Speech Tagging 6
Automatic POS Tagging HMM Part-of-Speech Tagging Motivation Corpus Annotation Tags and Tokens
Informatics 2A: Lecture 15 Part of Speech Tagging 7
Automatic POS Tagging HMM Part-of-Speech Tagging Motivation Corpus Annotation Tags and Tokens
Informatics 2A: Lecture 15 Part of Speech Tagging 8
Automatic POS Tagging HMM Part-of-Speech Tagging Motivation Corpus Annotation Tags and Tokens
Informatics 2A: Lecture 15 Part of Speech Tagging 8
Automatic POS Tagging HMM Part-of-Speech Tagging Motivation Corpus Annotation Tags and Tokens
Informatics 2A: Lecture 15 Part of Speech Tagging 8
Automatic POS Tagging HMM Part-of-Speech Tagging Motivation Corpus Annotation Tags and Tokens
1 Word types are part of speech tags, tokens are just the words. 2 Word types are the number of times words appear in the
3 Word types are the vocabulary (what different words are
4 Word types and tokens are the same thing. Informatics 2A: Lecture 15 Part of Speech Tagging 9
Automatic POS Tagging HMM Part-of-Speech Tagging
Informatics 2A: Lecture 15 Part of Speech Tagging 10
Automatic POS Tagging HMM Part-of-Speech Tagging
Informatics 2A: Lecture 15 Part of Speech Tagging 10
Automatic POS Tagging HMM Part-of-Speech Tagging
1
Informatics 2A: Lecture 15 Part of Speech Tagging 10
Automatic POS Tagging HMM Part-of-Speech Tagging
1
1
1 |tn 1 )P(tn 1 )
1 )
Informatics 2A: Lecture 15 Part of Speech Tagging 10
Automatic POS Tagging HMM Part-of-Speech Tagging
1
1
1 |tn 1 )P(tn 1 )
1 )
1
Informatics 2A: Lecture 15 Part of Speech Tagging 10
Automatic POS Tagging HMM Part-of-Speech Tagging
1
Informatics 2A: Lecture 15 Part of Speech Tagging 11
Automatic POS Tagging HMM Part-of-Speech Tagging
1
Informatics 2A: Lecture 15 Part of Speech Tagging 11
Automatic POS Tagging HMM Part-of-Speech Tagging
1
Informatics 2A: Lecture 15 Part of Speech Tagging 11
Automatic POS Tagging HMM Part-of-Speech Tagging
1
Informatics 2A: Lecture 15 Part of Speech Tagging 11
Automatic POS Tagging HMM Part-of-Speech Tagging
1
Informatics 2A: Lecture 15 Part of Speech Tagging 12
Automatic POS Tagging HMM Part-of-Speech Tagging
1
Informatics 2A: Lecture 15 Part of Speech Tagging 12
Automatic POS Tagging HMM Part-of-Speech Tagging
1
Informatics 2A: Lecture 15 Part of Speech Tagging 12
Automatic POS Tagging HMM Part-of-Speech Tagging
1
Informatics 2A: Lecture 15 Part of Speech Tagging 12
Automatic POS Tagging HMM Part-of-Speech Tagging
Informatics 2A: Lecture 15 Part of Speech Tagging 13
Automatic POS Tagging HMM Part-of-Speech Tagging
Informatics 2A: Lecture 15 Part of Speech Tagging 14
Automatic POS Tagging HMM Part-of-Speech Tagging
Informatics 2A: Lecture 15 Part of Speech Tagging 15
Automatic POS Tagging HMM Part-of-Speech Tagging
Informatics 2A: Lecture 15 Part of Speech Tagging 16
Automatic POS Tagging HMM Part-of-Speech Tagging
Informatics 2A: Lecture 15 Part of Speech Tagging 17
Automatic POS Tagging HMM Part-of-Speech Tagging
Informatics 2A: Lecture 15 Part of Speech Tagging 18
Automatic POS Tagging HMM Part-of-Speech Tagging
1 |T| tag sequences 2 n tag sequences 3 |T| × n tag sequences 4 |T|n tag sequences Informatics 2A: Lecture 15 Part of Speech Tagging 19
Automatic POS Tagging HMM Part-of-Speech Tagging
START
Informatics 2A: Lecture 15 Part of Speech Tagging 20
Automatic POS Tagging HMM Part-of-Speech Tagging
START
Informatics 2A: Lecture 15 Part of Speech Tagging 20
Automatic POS Tagging HMM Part-of-Speech Tagging
START
Informatics 2A: Lecture 15 Part of Speech Tagging 20
Automatic POS Tagging HMM Part-of-Speech Tagging
START
Informatics 2A: Lecture 15 Part of Speech Tagging 20
Automatic POS Tagging HMM Part-of-Speech Tagging
START
Informatics 2A: Lecture 15 Part of Speech Tagging 20
Automatic POS Tagging HMM Part-of-Speech Tagging
START
Informatics 2A: Lecture 15 Part of Speech Tagging 20
Automatic POS Tagging HMM Part-of-Speech Tagging
START
Informatics 2A: Lecture 15 Part of Speech Tagging 20
Automatic POS Tagging HMM Part-of-Speech Tagging
START
Informatics 2A: Lecture 15 Part of Speech Tagging 20
Automatic POS Tagging HMM Part-of-Speech Tagging
START
Informatics 2A: Lecture 15 Part of Speech Tagging 20
Automatic POS Tagging HMM Part-of-Speech Tagging
START
Informatics 2A: Lecture 15 Part of Speech Tagging 20
Automatic POS Tagging HMM Part-of-Speech Tagging
START
Informatics 2A: Lecture 15 Part of Speech Tagging 20
Automatic POS Tagging HMM Part-of-Speech Tagging
START
Informatics 2A: Lecture 15 Part of Speech Tagging 20
Automatic POS Tagging HMM Part-of-Speech Tagging
START
Informatics 2A: Lecture 15 Part of Speech Tagging 20
Automatic POS Tagging HMM Part-of-Speech Tagging
START
Informatics 2A: Lecture 15 Part of Speech Tagging 20
Automatic POS Tagging HMM Part-of-Speech Tagging
1 Create probability matrix, with one column for each
2 We proceed by filling cells, column by column Informatics 2A: Lecture 15 Part of Speech Tagging 21
Automatic POS Tagging HMM Part-of-Speech Tagging
Informatics 2A: Lecture 15 Part of Speech Tagging 22
Automatic POS Tagging HMM Part-of-Speech Tagging
Informatics 2A: Lecture 15 Part of Speech Tagging 23
Automatic POS Tagging HMM Part-of-Speech Tagging
Informatics 2A: Lecture 15 Part of Speech Tagging 24
Automatic POS Tagging HMM Part-of-Speech Tagging
Informatics 2A: Lecture 15 Part of Speech Tagging 25
Automatic POS Tagging HMM Part-of-Speech Tagging
Informatics 2A: Lecture 15 Part of Speech Tagging 26
Automatic POS Tagging HMM Part-of-Speech Tagging
Informatics 2A: Lecture 15 Part of Speech Tagging 27