Unit 2_Lecture 1
Unit 2_Lecture 1
Language Processing
Unit II
Instructor:
Mrs. S. Niveditha,
Lecture : 10 Assistant Professor(Sr. G)
Unit :2 SRM Institute of Science and Technology,
Session :1 nivedits@srmist.edu.in
Topics for Today
Syntax Parsing
Dependency Parsing
Syntax Parsing
Parsing is the task of uncovering the syntactic structure of language and is often
viewed as an important prerequisite for building systems capable of understanding
language
Top-down Parsing
The parser starts constructing the parse tree from the start symbol and
then tries to transform the start symbol to the input. The most common
form of top-down parsing uses recursive procedure to process the input.
The main disadvantage of recursive descent parsing is backtracking.
Bottom-up Parsing
The parser starts with the input symbol and tries to construct the parser
tree up to the start symbol.
Deep Vs Shallow Parsing
In deep parsing, the search strategy will give a It is the task of parsing a limited part of the
complete syntactic structure to a sentence. syntactic information from the given task.
It is suitable for complex NLP applications. It can be used for less complex NLP
applications.
Dialogue systems and summarization are the Information extraction and text mining are the
examples of NLP applications where deep examples of NLP applications where deep
parsing is used. parsing is used.
Left-most Derivation
In the left-most derivation, the sentential form of an input is scanned and replaced
from the left to the right. The sentential form in this case is called the left-
sentential form.
Right-most Derivation
In the left-most derivation, the sentential form of an input is scanned and replaced
from right to left. The sentential form in this case is called the right-sentential form.
Sample Grammar
Sample Grammar
Example
Example
Ambiguity
Dependency Parsing
1. S → NP VP
2. NP → Det N
The dog chased the cat
3. VP → V NP / V ADV The sun is shining
4. Det → "The" | "A“ brightly.
5. N → "dog" | "cat“ | “sun”
6. V → "chased“
7. Adv → “Shining”