Docsity

Exam - Weekly Quiz 5 - Natural Language Processing, Exercises of Natural Language Processing (NLP)

Toggle sidebar
bg1
CS224N: Natural Language Processing
Spring 2008
Weekly Quiz
Quiz 5
1: With a computer reading this sentence, you have just observed an example of:
Malapropism
Garden pathing
Coordination ambiguity
All of the above
2: To do relation analysis between entities, one approach is to use seed patterns such
as
/[PER] who worked at [ORG]/
to collect information of all the companies/organizations that people have worked
for. This type of approach is referred to as:
Unsupervised learning
Lightly supervised learning
Supervised learning
None of the above
3: Which of the following is true about top-down and/or bottom-up parsing?
Bottom-up parsing has an advantage over top-down parsing in that conflicting
rules are impossible.
Top-down parsing can be inefficient as it spends considerable time exploring
trees that are not consistent with the input words.
Bottom-up parsing may generate subtrees that cannot eventually derive the
start symbol.
A & B
B & C
A, B, & C
4: In the PA3 handout is given this equation for computing the derivatives of the
objective function:
pf3

Partial preview of the text

Download Exam - Weekly Quiz 5 - Natural Language Processing and more Exercises Natural Language Processing (NLP) in PDF only on Docsity!

CS224N: Natural Language Processing

Spring 2008

Weekly Quiz

Quiz 5

1: With a computer reading this sentence, you have just observed an example of:

Malapropism Garden pathing Coordination ambiguity All of the above 2: To do relation analysis between entities, one approach is to use seed patterns such as

/[PER] who worked at [ORG]/

to collect information of all the companies/organizations that people have worked for. This type of approach is referred to as:

Unsupervised learning Lightly supervised learning Supervised learning None of the above 3: Which of the following is true about top-down and/or bottom-up parsing?

Bottom-up parsing has an advantage over top-down parsing in that conflicting rules are impossible. Top-down parsing can be inefficient as it spends considerable time exploring trees that are not consistent with the input words. Bottom-up parsing may generate subtrees that cannot eventually derive the start symbol. A & B B & C A, B, & C 4: In the PA3 handout is given this equation for computing the derivatives of the objective function:

What is true about this equation?

Both "count" terms require knowledge of the true class labels. The feature index i does not specify a class: this is accomplished by the c or c' argument. The negative sign outside was introduced because we are minimizing our likelihood objective. None of the above 5: There are two different views of linguistic structures: phrase structure and dependency structure. Given an arbitrary dependency structure, when is it possible to represent it as a tree:

Always, in general. Only when there are no local or attachment ambiguities. Only when the dependency structure has no crossed edges. Both conditions B & C 6: One way to design a top-down parser for the following grammar, say:

S -> NP VP NP -> AT NN NN -> cat ...

is to write the functions parseS(), parseNP(), parseNN(), etc., then start a parse simply by calling parseS(). Knowing this, which of the following grammar rules would be illegal in a top-down parser:

NP -> NP NN VP -> VBZ S S -> NP VP S AT -> the | a (here the "|" means an "or", so the two rules "AT -> the" and "AT -> a")