Class ScannerRule
source code
object --+
|
AbstractChartRule --+
|
ScannerRule
A rule licensing a leaf edge corresponding to a part-of-speech
terminal following an incomplete edge's dot. In particular, this rule
specifies that:
licenses the edges:
-
[P→w*][j:j+1]
-
[w→*][j:j+1]
if the j
th word in the text is w
; and
P
is a valid part of speech for w
.
|
__init__(self,
word_to_pos_lexicon)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
Inherited from AbstractChartRule :
__str__ ,
apply ,
apply_everywhere ,
apply_everywhere_iter
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__
|