Context-Free Grammars Flashcards

1
Q

Context-Free Grammar

A

The rules have a single variable on the left-hand side

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Probabilistic Context-Free-Grammar

A

Used to assign a probability to a parse tree

All the rules with the same left-hand side sum up to one

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Chomsky Normal Form

A

Convert a CFG to have exactly two non-terminal, or one terminal, symbol on the right-hand side

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Lexicon

A

The set of rules that make up a grammar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Modeling Transitive Verbs

A

He hit me.

VPtrans -> Vtrans NP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Modeling Intransitive Verbs

A

He sleeps.

VPintrans -> Vintrans

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Modeling Ditransitive Verbs

A

He gave me ten dollars.

VPditrans -> Vditrans NP NP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Modeling Agreement

A

NPsing -> Det Nsing | Pron2sing | PN (proper noun)

NPplural -> Nplural | PronOther

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Modeling Relative Clauses

A

I saw the man who sleeps.
I saw the duck that John fed.

NP -> Det N RC (relative clause)
RC -> RP (relative pronoun) VPintrans | RP NP Vtrans | RP NP Vditrans NP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly