Midterm Exam Solution - NAME CS-5340\/6340 Solutions for Midterm Exam Fall 2013 1(8 pts Consider the following grammar G S NP VP NP noun VP verb ADJP

Midterm Exam Solution - NAME CS-5340/6340 Solutions for...

This preview shows page 1 - 5 out of 11 pages.

NAME: CS-5340/6340, Solutions for Midterm Exam, Fall 2013 1. (8 pts) Consider the following grammar G: S NP VP NP noun VP verb ADJP ADJP adj noun NLP verb is adj cool The questions below do not involve chart parsing! Simply show the order in which rules would be applied using a general search strategy. (a) Show a bottom-up parsing derivation of the sentence “NLP is cool” using gram- mar G. One possible solution is: NLP is cool noun is cool NP is cool NP verb cool NP verb adj NP verb ADJP NP VP S 1
Image of page 1
(b) Show a top-down parsing derivation of the sentence “NLP is cool” using grammar G. One possible solution is: S NP VP noun VP NLP VP NLP verb ADJP NLP is ADJP NLP is adj NLP is cool 2
Image of page 2
2. (10 pts) For each sentence below, indicate whether the verb phrase is in active or passive voice. On the way to the park, the man began to whistle. Active George does not have any brothers or sisters. Active They have donated thousands of dollars to charity. Active Mary has been waiting for a kidney transplant. Active John was thanked for his many contributions to the company. Passive Many rare dolphins have been found in the Arctic Ocean. Passive The boys were hiking in the woods for several hours. Active In Boston, four women were publicly praised for their heroism. Passive The book about Utah was written by a famous historian. Passive The girl will be going to Harvard next year. Active 3
Image of page 3
3. (10 pts) Circle every base noun phrase (NP) in each sentence below and label it with its syntactic role in the sentence. Choose from the following syntactic roles: SUBJECT, DIRECT OBJECT (DOBJ), INDIRECT OBJECT (IOBJ) or PP (if the NP is part of a prepositional phrase). Theresa bought a new computer with her credit card. (Theresa)/SUBJECT bought (a new computer)/DOBJ with (her credit card)/PP. The man was buried by an avalanche with his dog. (The man)/SUBJECT was buried by (an avalanche)/PP with (his dog)/PP.
Image of page 4
Image of page 5

You've reached the end of your free preview.

Want to read all 11 pages?

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors