Natural Language Processing · free preview

Context-Free Grammars and Constituency

Constituency as words acting as units, context-free rules and derivations, treebanks as implicit grammars, and structural ambiguity.

1. Context-Free Grammars and Constituency

Context-Free Grammars and Constituency

2. One sentence, many trees

One sentence, many trees

3. Enumerating parses and extracting rules

Enumerating parses and extracting rules

4. The four parts of a grammar

Which of these is NOT one of the four components of a context-free grammar as formally defined?

5. Two trees for one string

In 'the skipper docked the boat with the sail', what distinguishes the two parses the miniature grammar licenses?

6. Rewriting from S to a sentence

Starting from SS, apply S→NP VPS \to NP\ VP, then NP→Det NNP \to Det\ N and VP→V NPVP \to V\ NP, then NP→Det NNP \to Det\ N again. How many rule applications does the complete derivation to a pure word string take, before any lexical rules? Answer with the number.

7. Testing for a constituent

Why does the substitution test, replacing a string with a single word of the same category, evidence constituency?

8. Every internal node is a rule

How does a treebank yield a grammar, and why are treebank grammars flat and wide?

Practice this interactively

Free account · instant grading · spaced review that schedules itself.

Start this course for free