Professional Documents
Culture Documents
Untitled
Untitled
ID no
Programme B.tech Electronics
Engineering, Semester
- VIII
Subject Code R4EC4123P
Date of Experiment
Date of Submission
Faculty Name Dr. Karuna Bhalerao
Shivankit 191060068
Group Members Rajat Bhoir 191060055
Vignesh Ramasubramaniam
191060074
Kunal Tawde 191060041
Jatin Salve 191060059
Experiment 2
Title: Syntax Modeling for Words
Theory:
In this sentence, we can identify the subject "cat", the verb "sat", and the object
"mat". We can also identify that "the" and "on" are prepositions that link the subject
and object.
One way to model this sentence's syntax is by using a parse tree, which represents
the sentence's structure as a hierarchical tree.
Example:
The syntax tree for the sentence given below is as follows:
I drive a car to my college.
Code:
Output:
Conclusion: