Professional Documents
Culture Documents
Natural Language
Processing: Communication
Outline
Communication as Action
Grammar
Syntactic Analysis
Augmented Grammars
Semantic Interpretation
Communication
Communication: intentional exchange of information brought about by
the production and perception of signs.
4
Stages in communication
Grammar
Vervet monkeys, antelopes, dolphins etc. use isolated symbols for
sentences ⇒ restricted set of communicable propositions, no
generative capacity
Humans can reliably communicate an unbounded number of
qualitative different messages.
1 7
1 8
Grammar (Wumpus world)
1 9
110
Top-down Parsing
We start with the S symbol and search for a tree that has the words as the
leaves.
Steps:
i. Initial state: a parse tree consisting of root and unknown children: [S:
?]
ii. Successor function:
• Select the leftmost node in the tree with unknown children.
• It then look into the grammar for rules that have the root level on the left-
hand side.
• Each such rules, it creates a successor state
iii. Goal test: checks the leave of the parse tree correspond exactly the
input string
Problems:
• Infinite loop: X → X
• for invalid sentences we would get stuck in an infinite search space.
111
Bottom-up Parsing
We start with the words and search for a tree with the root S.
Steps:
i. Initial state: a list of words in the input string, each viewed as a
parse tree that is just a single leaf node
ii. Successor function:
• Looks for every position i in the list of the tree and at every right had
side of a rule in the grammar.
• If a subsequence matches with the right hand side the
subsequence is replaced with a new tree.
iii. Goal test: checks for a state consisting a single tree with root S.
112
Augmented Grammar
Self study
113
Semantic Interpretation
114