Presentation is loading. Please wait.

Presentation is loading. Please wait.

Notes on Pinker ch.7 Grammar, parsing, meaning. What is a grammar? A grammar is a code or function that is a database specifying what kind of sounds correspond.

Similar presentations


Presentation on theme: "Notes on Pinker ch.7 Grammar, parsing, meaning. What is a grammar? A grammar is a code or function that is a database specifying what kind of sounds correspond."— Presentation transcript:

1 Notes on Pinker ch.7 Grammar, parsing, meaning

2 What is a grammar? A grammar is a code or function that is a database specifying what kind of sounds correspond to what kinds of meanings in a particular language 197 It is not a recipe or program for speaking or understanding. Procedures are needed for converting thoughts to sounds and sounds to thoughts. The mental program that analyzes sentence structure during comprehension is called the Parser.

3 Parsing a simple sentence: “the dog likes ice cream.” Pinker uses his “toy” English grammar. S->NP VP A sentence can consist of a noun phrase and a verb phrase.

4 Define a noun phrase NP NP-> (Det) N (PP) A noun phrase can consist of an optional determiner, a noun, and an optional prepostional phrase. Remember this is a “toy” - the real NP would at least look like this: NP-> (Det) N (PP) (S) This S allows “recursion” - a sentence to appear inside itself.

5 Define a verb phrase VP VP-> V NP (PP) A verb phrase can consist of a verb, a noun phrase, and an optional prepositional phrase.

6 Define a prepositional phrase (PP) PP-> P NP A prepositional phrase can consist of a preposition and a noun phrase.

7 Nouns (N) N->boy, girl, dog, cat, ice cream, candy The nouns in the mental dictionary include boy, girl, dog…

8 Verbs V V-> eats, likes, bites… The verbs in the mental dictionary include eats, likes, bites

9 Preposition (P) P-> with, in, near… The prepositions include with, in, near..

10 Determiners (det) Det->a, the, one…. The determiners include a,the, one..

11

12 The parser works word by word, building a labeled tree. “The dog likes ice cream.” Look up ‘the” in the mental dictionary. The rule says the word ‘the’ is a determiner.

13 “the first twig of the tree” Det->a, the, one..

14

15 The rules tell us what the tree with ‘det’ looks like. NP->det N

16 NPs can be part of an S, a VP, or PP Try S->NP VP The ‘dangling N’ twig predicts the next word is an N.

17 “the dog…. The next word, dog, fits this prediction. The NP may be complete and the parser can concentrate on finishing the S. The NP can have its meaning computed.

18 “likes” “likes” is a verb and must come from VP And the tree predicts a NP may be coming next.

19 “ice cream” The mental dictionary tells us “ice cream” is a N and that fits into the NP. “when memory has been emptied of all its incomplete dangling branches, we experience the mental “click” that signals that we have just heard a complete grammatical sentence.”

20

21

22 Grammatical relationships can be determined from the tree and mental dictionary Who did what to whom? ((Who) ((did) (what (to whom?)))

23

24

25 Complex sentences The ‘toy’ grammar does not capture all the basics of human languages. In particular it lacks the capacity to form complex sentences-- combining two or more simpler sentences into a compound complex sentence.

26 Three types of complex sentences Basic conjunctions S->S1 S2 He went home and she went to lunch. Relative clauses- give info about the head N NP->det N S+pronoun (that, which, who, whom) The dog which () ran away liked ice cream. Complement clauses-directly ‘name’ heads VP->V COMP COMP->that-S The dog (believed (that she would get ice cream.))

27

28 ambiguity

29 Sources of ambiguity Two or more trees can be built from the same word string. Relative clauses leave more than one gap to be filled (Loss of inflection on N enable more than one possible grammatical role) There may be more than one sense (meaning) in the lexicon for a word (morpheme).

30 Homework examples (see Topic notes on related examples)

31 Gaps and traces The policeman saw the boy that the crowd at the party accused (trace) of the crime.


Download ppt "Notes on Pinker ch.7 Grammar, parsing, meaning. What is a grammar? A grammar is a code or function that is a database specifying what kind of sounds correspond."

Similar presentations


Ads by Google