| Reference: Chapter 4 of Allen, James: Natural Language Understanding, 2nd ed., Benjamin Cummings, 1995. |
| Aim: |
| To describe feature systems, principally syntactic ones, and how grammars may be augmented using featural restrictions. We also enhance a basic chart parser to handle features. |
| Keywords: agreement, augmented grammar, complement, feature, head feature, head subconstituent, subcat, subcategorization, vform |
| Plan: |
|
| vform value | Description | Examples |
|---|---|---|
base | ||
pres | ||
past | ||
fin | ||
ing | ||
pastprt | ||
inf |
| subcat value | Example Verb | Example |
|---|---|---|
| none | laugh | Jack laughed _ |
| np | find | Jack found a key |
| np_np | give | Jack gave Sue the paper |
| vp:inf | want | Jack wants to fly |
| np_vp:inf | tell | Jack told the man to go |
| vp:ing | keep | Jack keeps hoping for the best |
| np_vp:ing | catch | Jack caught Sam cheating |
| np_vp:base | watch | Jack watched Sam buy the drinks |
See Figures 4.2 and 4.4 in Allen for more examples.
| Rule | Example | |
|---|---|---|
| 1 | S[–inv] → NP(agr(?a)) VP[{pres past}](agr(?a)) | |
| 2 | NP → DET(agr(?a)) N(agr(?a)) | a man |
| 3 | NP → PRO | he |
| 4 | VP → V[none] | [he] cries |
| 5 | VP → V[np] NP | [he] sees her |
| 6 | VP → V[vp:inf] VP[inf] | [he] wants to see her |
| 7 | VP → V[np_vp:inf] NP VP[inf] | [he] wants her to see him |
| 8 | VP → V[adjp] ADJP | [he] is happy to help |
| 9 | VP[inf] → TO VP[base] | to help |
| 10 | ADJP → ADJ | happy |
| 11 | ADJP → ADJ[vp:inf] VP[inf] | happy to help |
Head_features(S, VP) = vform, agr; Head_features(NP) = agr
| Phrasal Category | Head |
|---|---|
| NP | N, NAME, or PRO |
| S | VP |
| VP | V |
| PP | PREP |
| # | Original | Expanded |
|---|---|---|
| 11 | ADJP → ADJ[vp:inf] VP[inf] | ADJP → ADJ(subcat(vp:inf)) VP(vform(inf)) |
| 7 | VP → V[np_vp:inf] NP VP[inf] | VP(agr(?a), vform(?v)) → V(subcat(np_vp:inf), agr(?a), vform(?v)) NP VP(vform(inf)) |
Grammar 4.8 in Allen has the details for all the other rules.
Here is a parse tree with features shown (cf. Fig. 4.9 of Allen).
NP(agr(?a)) → DET(agr(?a)) N(agr(?a))
with the phrases a man and a men. Such a rule is called an augmented grammar rule.
DET1: DET(agr(3s)) → "a" from 0 to 1
so we can form an active arc on encountering a, with the variable ?a being instantiated to 3s:
ARC8: NP(agr(3s)) → DET1(agr(3s)) • N(agr(3s)) from 0 to 1
N1: N(agr(3s)) → "man" from 1 to 2
we can extend the active arc to
ARC9: NP(agr(3s)) → (DET1(agr(3s)) N1(agr(3s)) • from 0 to 2
NP1: NP(agr(3s)) → DET1(agr(3s)) N1(agr(3s)) from 0 to 2
N2: N(agr(3p)) → "men" from 1 to 2
There is an example of a complete parse using features in Allen (page 100, Figure 4.10 and text nearby).
Note that the augmented rule is actually a context-sensitive rule. Because the context-sensitivity is of a very specific type, the parsing algorithm can (be extended to) cope with it.
| Summary: |
|
|
CRICOS Provider Code No. 00098G
Copyright (C) Bill Wilson, 2009, except where another source is acknowledged.