Class GrammarCategory
source code
??-167 --+
|
??-168 --+
|
??-169 --+
|
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").
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.
Every GrammarCategory has a / feature implicitly present; if it is not
explicitly written, it has the value False. This is so that
"slashed" features cannot unify with "unslashed"
ones.
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 Category:
__cmp__,
__div__,
__eq__,
__getitem__,
__hash__,
__init__,
__ne__,
__repr__,
__setitem__,
__str__,
copy,
feature_names,
freeze,
frozen,
get,
has_feature,
has_key,
head,
items,
keys,
remove_unbound_vars,
substitute_bindings,
symbol,
values
|
|
|
headname = 'pos'
|
|
|
yaml_tag = '!parse.GrammarCategory'
|
|
|