Home | Trees | Indices | Help |
|
---|
|
object --+ | featurestructure.FeatureStructure --+ | object --+ | | | cfg.Nonterminal --+ | Category --+ | GrammarCategory
A class of Category
for use in parsing.
The name of the head feature in a GrammarCategory
is
pos
(for "part of speech"). There is one required
feature, /
, which is intended to indicate a type of phrase
that is missing from the grammatical structure.
In addition, GrammarCategories are displayed and parse differently, to
be consistent with NLP teaching materials: the value of the
/
feature can be written with a slash after the right
bracket, so that the string representation looks like:
head[...]/value
.
An example of a GrammarCategory
is
VP[+fin]/NP
, for a verb phrase that is finite and has an
omitted noun phrase inside it.
|
|||
Inherited from |
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
|
|||
Inherited from Inherited from |
|
|||
headname =
|
|||
requiredFeatures =
|
|||
_PARSE_RE =
|
|||
k =
|
|||
v = re.compile(r'\s
|
|
|||
Inherited from Inherited from |
|
|||
|
|
Helper function that parses a Category.
|
|
_PARSE_RE
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed May 16 22:47:29 2007 | http://epydoc.sourceforge.net |