Context-Free Grammars Flashcards
Context-Free Grammar
The rules have a single variable on the left-hand side
Probabilistic Context-Free-Grammar
Used to assign a probability to a parse tree
All the rules with the same left-hand side sum up to one
Chomsky Normal Form
Convert a CFG to have exactly two non-terminal, or one terminal, symbol on the right-hand side
Lexicon
The set of rules that make up a grammar
Modeling Transitive Verbs
He hit me.
VPtrans -> Vtrans NP
Modeling Intransitive Verbs
He sleeps.
VPintrans -> Vintrans
Modeling Ditransitive Verbs
He gave me ten dollars.
VPditrans -> Vditrans NP NP
Modeling Agreement
NPsing -> Det Nsing | Pron2sing | PN (proper noun)
NPplural -> Nplural | PronOther
Modeling Relative Clauses
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