- Up - | Next >> |
We motivated the introduction of feature structures in the previous section, by saying that we would like to be able to express things like
: number of = number of ,
i.e. NP and VP have to agree in number in order to form a sentence. The basic idea is that non-terminal symbols no longer are atomic, but are feature structures, which specify what properties the constituent in question has to have. So, instead of writing the (atomic) non-terminal symbols , , , we use feature structures where the value of the attribute is , , . The rule becomes
That doesn't look so exciting, yet. But what we can to now is to add further information to the feature structures representing the non-terminal symbols. We can, e.g., add the information that the np must have nominative case:
Further, we can add an attribute called to the np and the vp and require that the values be shared. Note how we express this requirement by co-indexing the values.
Here is a feature based grammar for a (tiny) fragment of English.
- Up - | Next >> |