LING 388: Language and Computers Sandiway Fong Lecture 2.

Slides:



Advertisements
Similar presentations
LING 388: Language and Computers
Advertisements

CS460/IT632 Natural Language Processing/Language Technology for the Web Lecture 2 (06/01/06) Prof. Pushpak Bhattacharyya IIT Bombay Part of Speech (PoS)
Syntax. Definition: a set of rules that govern how words are combined to form longer strings of meaning meaning like sentences.
SYNTAX Introduction to Linguistics. BASIC IDEAS What is a sentence? A string of random words? If it is a sentence, does it have to be meaningful?
Probabilistic Parsing Chapter 14, Part 2 This slide set was adapted from J. Martin, R. Mihalcea, Rebecca Hwa, and Ray Mooney.
LING 388: Language and Computers Sandiway Fong Lecture 15.
LING 388 Language and Computers Lecture 22 11/25/03 Sandiway FONG.
1 SIMS 290-2: Applied Natural Language Processing Marti Hearst Sept 20, 2004.
LING 388: Language and Computers Sandiway Fong Lecture 14: 10/13.
1 CSC 594 Topics in AI – Applied Natural Language Processing Fall 2009/ Shallow Parsing.
1 SIMS 290-2: Applied Natural Language Processing Marti Hearst Sept 22, 2004.
LING 388 Language and Computers Take-Home Final Examination 12/9/03 Sandiway FONG.
Computational Intelligence 696i Language Lecture 4 Sandiway Fong.
LING 388: Language and Computers Sandiway Fong Lecture 1: 8/23.
1 CSC 594 Topics in AI – Applied Natural Language Processing Fall 2009/ Outline of English Syntax.
Artificial Intelligence 2004 Natural Language Processing - Syntax and Parsing - Language Syntax Parsing.
LING 388: Language and Computers Sandiway Fong Lecture 8.
SI485i : NLP Set 9 Advanced PCFGs Some slides from Chris Manning.
LING/C SC/PSYC 438/538 Lecture 19 Sandiway Fong 1.
LING/C SC/PSYC 438/538 Lecture 2 Sandiway Fong. Today’s Topics Did you read Chapter 1 of JM? – Short Homework 1 (submit by midnight Saturday) Some slides.
Introduction to Linguistics
LING 388: Language and Computers Sandiway Fong Lecture 17.
LING 388: Language and Computers Sandiway Fong Lecture 7.
1 Statistical Parsing Chapter 14 October 2012 Lecture #9.
LING 388: Language and Computers Sandiway Fong Lecture 3.
GRAMMARS David Kauchak CS159 – Fall 2014 some slides adapted from Ray Mooney.
Methods for the Automatic Construction of Topic Maps Eric Freese, Senior Consultant ISOGEN International.
LING 388: Language and Computers Sandiway Fong Lecture 18.
LING 388: Language and Computers Sandiway Fong Lecture 10.
PARSING David Kauchak CS159 – Spring 2011 some slides adapted from Ray Mooney.
LING 388: Language and Computers Sandiway Fong Lecture 13.
LING 388: Language and Computers Sandiway Fong Lecture 1: 8/23.
For Wednesday Read chapter 23 Homework: –Chapter 22, exercises 1,4, 7, and 14.
LING 388: Language and Computers Sandiway Fong Lecture 12.
Rules, Movement, Ambiguity
The man bites the dog man bites the dog bites the dog the dog dog Parse Tree NP A N the man bites the dog V N NP S VP A 1. Sentence  noun-phrase verb-phrase.
CSA2050 Introduction to Computational Linguistics Parsing I.
PARSING 2 David Kauchak CS159 – Spring 2011 some slides adapted from Ray Mooney.
NLP. Introduction to NLP Motivation –A lot of the work is repeated –Caching intermediate results improves the complexity Dynamic programming –Building.
LING 388: Language and Computers Sandiway Fong Lecture 21.
CPSC 422, Lecture 27Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 27 Nov, 16, 2015.
LING/C SC/PSYC 438/538 Lecture 20 Sandiway Fong 1.
LING/C SC/PSYC 438/538 Lecture 18 Sandiway Fong. Adminstrivia Homework 7 out today – due Saturday by midnight.
CS460/IT632 Natural Language Processing/Language Technology for the Web Lecture 13 (17/02/06) Prof. Pushpak Bhattacharyya IIT Bombay Top-Down Bottom-Up.
LING 388: Language and Computers Sandiway Fong Lecture 20.
NATURAL LANGUAGE PROCESSING
NLP. Introduction to NLP #include int main() { int n, reverse = 0; printf("Enter a number to reverse\n"); scanf("%d",&n); while (n != 0) { reverse =
LING/C SC/PSYC 438/538 Lecture 19 Sandiway Fong 1.
PARSING David Kauchak CS159 – Fall Admin Assignment 3 Quiz #1  High: 36  Average: 33 (92%)  Median: 33.5 (93%)
LING/C SC 581: Advanced Computational Linguistics Lecture Notes Feb 3 rd.
LING/C SC 581: Advanced Computational Linguistics Lecture Notes Feb 17 th.
LING 581: Advanced Computational Linguistics Lecture Notes March 2nd.
CKY Parser 0Book 1 the 2 flight 3 through 4 Houston5 6/19/2018
LING/C SC/PSYC 438/538 Lecture 5 Sandiway Fong.
CS : Speech, NLP and the Web/Topics in AI
LING/C SC/PSYC 438/538 Lecture 21 Sandiway Fong.
LING/C SC/PSYC 438/538 Lecture 20 Sandiway Fong.
CKY Parser 0Book 1 the 2 flight 3 through 4 Houston5 11/16/2018
LING/C SC 581: Advanced Computational Linguistics
LING/C SC/PSYC 438/538 Lecture 3 Sandiway Fong.
Probabilistic and Lexicalized Parsing
LING 581: Advanced Computational Linguistics
Natural Language - General
LING/C SC/PSYC 438/538 Lecture 23 Sandiway Fong.
LING/C SC/PSYC 438/538 Lecture 24 Sandiway Fong.
LING/C SC/PSYC 438/538 Lecture 26 Sandiway Fong.
David Kauchak CS159 – Spring 2019
David Kauchak CS159 – Spring 2019
Artificial Intelligence 2004 Speech & Natural Language Processing
LING/C SC/PSYC 438/538 Lecture 3 Sandiway Fong.
Presentation transcript:

LING 388: Language and Computers Sandiway Fong Lecture 2

Administrivia Lab Exercises Today Homework 1 is out today – due next Monday by midnight – I’ll go over the homework in class next Tuesday

Example from Last Time Ambiguity – Where can I see the bus stop? – stop: verb or part of the noun-noun compound bus stop – Context (Discourse or situation)

Example from Last Time each word is given a POS label tree diagram of the sentence in S-EXP format

Example from Last Time POS Tagging: Parts of Speech (POS) Tagset (Penn Treebank) 03/ling001/penn_treebank_pos.html Parts of Speech (POS) Tagset (Penn Treebank) 03/ling001/penn_treebank_pos.html

Example from Last Time S-EXP Parse: 1.(PHRASE S-EXP 1.. S-EXP n ) 2.(POS WORD) Tagset (Penn Treebank) C95T7/cl93.html Tagset (Penn Treebank) C95T7/cl93.html S-EXP 1 S-EXP 2 e.g. (VP (VB see) (NP … ) e.g. (NN bus)

Example from Last Time Phrase tagset:

Example from Last Time Typed dependencies between words in a sentence form a graph: – relation(Word 1,Word 2 ) – Word 2 modifies Word 1 – Example: nsubj(see,I) – “I modifies see: I is the nominal subject of see” Explanation of the relations used can be found in 7 relations = 7 arcs in the graph ROOT see where can I I the stop bus advmod aux nsubj root det nn dobj

Example from Last Time Comparison (parse vs. typed dependency graph): ROOT see where can I the stop bus advmod aux nsubj root det nn dobj

Exercise 1 Consider the syntactically ambiguous sentence: – I prodded the boy with a stick. What is the ambiguity here? How can that ambiguity be expressed? Which interpretation does the Stanford Parser prefer?

Exercise 2 Compare with: – The boy with a stick prodded me. Why is this sentence not similarly ambiguous? Does the Stanford Parser give the right parse?

Exercise 3 Compare the Stanford parser interpretation for the two sentences: – I prodded the boy with a stick. – I saw the boy with a telescope. What is the difference? Can you force the parser to change structure by changing the object of the preposition?

Exercise 4 Contrast the following two sentences: – John is too stubborn to talk to. – John is too stubborn to talk to Bill. What is missing from the output of the Stanford Parser?

Exercise 4

Homework 1 Remember the syllabus described last time … – submit by to your TA Ben Martin – next Monday (by midnight) – Subject of should read: LING 388 Homework 1 – Put your name at the top of the file – Collect all answers in one file plain text or PDF formats only please (not.docx) should you choose to include any screen snapshots or illustrations to support your answer, they should not be in separate attachments – make them part of your single document

Homework 1 Examine the Stanford Parser output on these two sentences: 1.Which car did Mary like? 2.*Which car did Mary like the convertible? Questions: 1.(4pts) Does the typed dependencies output offer any advantage over the parse output for the 1 st sentence? 2.(4pts) What is wrong with the 2 nd sentence? 3.(4pts) Is it possible to deduce from the Stanford Parser output that the 2 nd sentence is ungrammatical?

Homework 1 Review Recall the ambiguous example: – Where can I see the bus stop? the Stanford parser analyses “bus stop” preferentially as a noun-noun compound: (NP (DT the) (NN bus) (NN stop)) 4.(4pts) Give a (question) sentence ending in “… the bus stop?” where the Stanford parser analyses “stop” as a verb. 5.(4pts) What syntactic situations would force a parser to decide to analyze “stop” in “… the bus stop?” as a noun (vs. a verb)?

Homework Resources Tagset (Penn Treebank) – Parts of speech (POS) – 01/penn_treebank_pos.html 01/penn_treebank_pos.html – More detailed, including syntactic labels – 3.html 3.html Dependencies – ual.pdf ual.pdf