ai 6
ai 6
ai 6
Module-VI:
Natural Language Processing
np vp
det n
tv np
the director
buys lunch
Types of Parsing
The parsing technique can be categorized into two types such
as
• Top down Parsing
• Bottom up Parsing Rahul is eating an apple.
―Susan‖ and ―the file‖ are identical, their syntactic roles are reversed
Printed(agent Sussan)
Printed(object file)
• ―Mother‖ is the subject of baked and in the other ―the pie‖ is
the subject of baked
• Baked(agent mother) and baked(object pie)
S → M + NP
M - Modality constituent
For example consider a sentence ―Ram did not eat the apple‖.
Wanting an object
Wanting a person
John wanted Mary to go to the store
Discourse and pragmatic processing
• Pragmatics and Discourse Analysis involve the study of
language in its contexts of use.
• Pragmatics focuses on the effects of context on meaning
• Discourse Analysis studies written and spoken language in
relation to its social context.
• It is necessary to consider the discourse and pragmatic
context in which the sentence was uttered.
– Bill had a red balloon
– John wanted it
• The word ―it‖ should be identified as red balloon (referred as
anaphora)
• Parts of entities
– John opened the book he just bought
– The tile page was torn
• Parts of actions
– John went on a business trip to New York
– He left on an early morning flight
• Entities involved in actions
– My house was broken into last week
– They took the TV and the stereo
• In order to recognize these kinds of relations among sentences, a
great deal of knowledge about the world being discussed is
required.
• The way this knowledge is organized is critical to the success of the
understanding.
Using focus in understanding
Two important parts of the process of using knowledge to facilitate
understanding
• Focus on the relevant parts of the available knowledge base
• Use that knowledge to resolve ambiguities and make connections
among things
Modelling Shared Beliefs
Represent the shared beliefs as facts.
Scripts have been used extensively to aid in natural language
understanding
Two steps in the process of using a script to aid in natural language
understanding
• Select the appropriate script(s) from memory
• Use the script(s) to fill in unspecified parts of the text to be
understood
Three different belief spaces
are shown
• S1 believes that Mary hit Bill
• S2 believes that sue hit Bill
• S3 believes that someone hit
Bill