LING/C SC/PSYC 438/538 Lecture 20 Sandiway Fong.

Slides:



Advertisements
Similar presentations
School of something FACULTY OF OTHER School of Computing FACULTY OF ENGINEERING Chunking: Shallow Parsing Eric Atwell, Language Research Group.
Advertisements

CPSC 422, Lecture 16Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 16 Feb, 11, 2015.
LING 388: Language and Computers Sandiway Fong Lecture 2.
Part-of-speech tagging. Parts of Speech Perhaps starting with Aristotle in the West (384–322 BCE) the idea of having parts of speech lexical categories,
LING 388 Language and Computers Lecture 22 11/25/03 Sandiway FONG.
1 Words and the Lexicon September 10th 2009 Lecture #3.
C SC 620 Advanced Topics in Natural Language Processing Sandiway Fong.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Fall 2005-Lecture 2.
Grammar Rules. Pronouns 1.Use as a S, DO, PN, or IO 2.Personal pronouns may be adjectives 3.Relative pronouns may introduce adjective clauses.
LING/C SC/PSYC 438/538 Lecture 19 Sandiway Fong 1.
LING/C SC/PSYC 438/538 Lecture 23 Sandiway Fong. Administrivia Homework 4 – out today – due next Wednesday – (recommend you attempt it early) Reading.
LING/C SC/PSYC 438/538 Lecture 27 Sandiway Fong. Administrivia 2 nd Reminder – 538 Presentations – Send me your choices if you haven’t already.
LING 388: Language and Computers Sandiway Fong Lecture 17.
What is a Sentence? By Jaye Lynn Trapp.
Overview Project Goals –Represent a sentence in a parse tree –Use parses in tree to search another tree containing ontology of project management deliverables.
LING 388: Language and Computers Sandiway Fong Lecture 30 12/8.
Czech-English Word Alignment Ondřej Bojar Magdalena Prokopová
1 LIN 1310B Introduction to Linguistics Prof: Nikolay Slavkov TA: Qinghua Tang CLASS 13, Feb 16, 2007.
LING 388: Language and Computers Sandiway Fong Lecture 18.
NLP. Introduction to NLP Is language more than just a “bag of words”? Grammatical rules apply to categories and groups of words, not individual words.
LING 388: Language and Computers Sandiway Fong Lecture 10.
11 Chapter 14 Part 1 Statistical Parsing Based on slides by Ray Mooney.
LING 388: Language and Computers Sandiway Fong Lecture 12.
The Parts of Speech The 8 Parts of Speech… Nouns Adjectives Pronouns Verbs Adverbs Conjunctions Prepositions Interjections.
CSA2050: Introduction to Computational Linguistics Part of Speech (POS) Tagging I Introduction Tagsets Approaches.
LING 388: Language and Computers Sandiway Fong Lecture 21.
Part-of-speech tagging
CPSC 422, Lecture 27Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 27 Nov, 16, 2015.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 2.
◦ Process of describing the structure of phrases and sentences Chapter 8 - Phrases and sentences: grammar1.
LING/C SC/PSYC 438/538 Lecture 18 Sandiway Fong. Adminstrivia Homework 7 out today – due Saturday by midnight.
1 LIN 1310B Introduction to Linguistics Prof: Nikolay Slavkov TA: Qinghua Tang CLASS 11, Feb 9, 2007.
Word classes and part of speech tagging. Slide 1 Outline Why part of speech tagging? Word classes Tag sets and problem definition Automatic approaches.
Word classes and part of speech tagging Chapter 5.
Phrase Definition review. Consists of an appositive and any modifiers the appositive has.
LING/C SC/PSYC 438/538 Lecture 19 Sandiway Fong 1.
2 pt 3 pt. 4 pt 5pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt 2pt 3 pt 4pt 5 pt 1pt 2pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4pt 5 pt 1pt Parts of speech PunctuationVerbal's.
Parts of Speech By: Miaya Nischelle Sample. NOUN A noun is a person place or thing.
LING/C SC 581: Advanced Computational Linguistics Lecture Notes Feb 3 rd.
Subject/Predicate Bell Ringer…
Welcome to the flashcards tool for ‘The Study of Language, 5 th edition’, Chapter 8 This is designed as a simple supplementary resource for this textbook,
LING/C SC 581: Advanced Computational Linguistics Lecture Notes Feb 17 th.
Introduction to Linguistics
Lecture 9: Part of Speech
CSC 594 Topics in AI – Natural Language Processing
Words, Phrases, Clauses, & Sentences
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 27
LING/C SC/PSYC 438/538 Lecture 23 Sandiway Fong.
LING/C SC/PSYC 438/538 Lecture 21 Sandiway Fong.
CSCI 5832 Natural Language Processing
LING/C SC 581: Advanced Computational Linguistics
LING/C SC/PSYC 438/538 Lecture 3 Sandiway Fong.
Probabilistic and Lexicalized Parsing
LING/C SC 581: Advanced Computational Linguistics
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 27
FIRST SEMESTER GRAMMAR
LING/C SC/PSYC 438/538 Lecture 23 Sandiway Fong.
LING/C SC/PSYC 438/538 Lecture 22 Sandiway Fong.
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 26
LING/C SC/PSYC 438/538 Lecture 24 Sandiway Fong.
LING/C SC/PSYC 438/538 Lecture 25 Sandiway Fong.
PREPOSITIONAL PHRASES
Linguistic Essentials
LING/C SC/PSYC 438/538 Lecture 13 Sandiway Fong.
Natural Language Processing
CS224N Section 3: Corpora, etc.
Artificial Intelligence 2004 Speech & Natural Language Processing
LING/C SC 581: Advanced Computational Linguistics
LING/C SC/PSYC 438/538 Lecture 3 Sandiway Fong.
Presentation transcript:

LING/C SC/PSYC 438/538 Lecture 20 Sandiway Fong

Writing natural language grammars Need: Ability to program with grammars Prolog grammar rules + Knowledge of language You have the knowledge but it’s not completely accessible to you… Textbook: chapter 5, sections 1 and 2 chapter 12

Natural Language Parsing Syntax trees are a big deal in NLP Stanford Parser (see also Berkeley Parser) http://nlp.stanford.edu:8080/parser/index.jsp Uses probabilistic rules learnt from the Penn Treebank corpus Produces parses in the same format (modulo empty categories and subtags) Also produces dependency diagrams We do a lot with Treebanks in the follow-on course to this one (LING 581, Spring semester)

Natural Language Parsing Penn Treebank (WSJ section): parsed by human annotators Efforts by the Hong Kong Futures Exchange to introduce a new interest-rate futures contract continue to hit snags despite the support the proposed instrument enjoys in the colony’s financial community.

Natural Language Parsing Penn Treebank (WSJ section): parsed by human annotators Efforts by the Hong Kong Futures Exchange to introduce a new interest-rate futures contract continue to hit snags despite the support the proposed instrument enjoys in the colony’s financial community. Tree display software: tregex (from Stanford University)

Natural Language Parsing

Natural Language Parsing Comparison between human parse and machine parse: empty categories not recovered by parsing, otherwise a good match

Natural Language Parsing

Part of Speech (POS) JM Chapter 5 Parts of speech Classic eight parts of speech: e.g. englishclub.com => traced back to Latin scholars, back further to ancient Greek (Thrax) not everyone agrees on what they are .. The textbook lists: open class 4 (noun, verbs, adjectives, adverbs) closed class 7 (prepositions, determiners, pronouns, conjunctions, auxiliary verbs, particles, numerals) or what the subclasses are e.g. what is a Proper Noun? Saturday, April Textbook answer below …

Part of Speech (POS) Getting POS information about a word dictionary In computational linguistics, the Penn Treebank tagset is the most commonly used tagset (reprinted inside the front cover of your textbook) Getting POS information about a word dictionary pronunciation: e.g. are you conTENT with the CONtent of the slide? possible n-gram sequences e.g. *pronoun << common noun the << common noun structure of the sentence/phrase (Syntax) possible inflectional endings: e.g. V-s/-ed/-en/-ing e.g. N-s 45 tags listed in textbook 36 POS + 10 punctuation Task: POS tagging

Part of Speech (POS) http://faculty.washington.edu/dillon/GramResources/penntable.html NNP NNPS

Part of Speech (POS) PRP PRP$

Part of Speech (POS)

Part of Speech (POS) Stanford parser: walk noun/verb

Part of Speech (POS) Stanford parser: walk noun/verb

Part of Speech (POS) Word sense disambiguation is more than POS tagging: different sense of the word bank

Syntax Words combine recursively with one another into phrases (aka constituents) usually when two words combine, one word will head the phrase e.g [VB/VBP eat] [NN chocolate] e.g [VB/VBP eat] [DT some][NN chocolate] projects Warning: terminology and parses in computational linguistics not necessarily the same as that used in linguistics object projects

Syntax Words combine recursively with one another into phrases (aka constituents) e.g. [PRP we][VB/VBP eat] [NN chocolate] e.g. [TO to][VB/VBP eat] [NN chocolate] subject

Syntax Words combine recursively with one another into phrases (aka constituents) e.g. [NNP John][VBD noticed][IN/DT/WDT that][PRP we][VB/VBP eat] [NN chocolate] selects/subcategorizes for CP projects complementizer

Syntax Words combine recursively with one another into phrases (aka constituents) How about SBAR? cf. John wanted me to eat chocolate

Syntax Words combine recursively with one another into phrases (aka constituents) John noticed that we eat chocolate John noticed we eat chocolate