| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
api.TaggerI --+
|
SequentialBackoffTagger
An abstract base class for taggers that tags words sequentially, left to right. Tagging of individual words is performed by the method choose_tag(), which should be defined by subclasses. If a tagger is unable to determine a tag for the specified token, then its backoff tagger is consulted.
|
|||
|
|||
|
|||
list of (token, tag)
|
|
||
str
|
|
||
str
|
|
||
|
Inherited from Inherited from |
|||
|
|||
|
_taggers A list of all the taggers that should be tried to tag a token (i.e., self and its backoff taggers).
|
|||
|
|||
|
backoff The backoff tagger for this tagger. |
|||
|
|||
|
Determine the most appropriate tag sequence for the given token
sequence, and return a corresponding list of tagged tokens. A tagged
token is encoded as a tuple
|
Determine an appropriate tag for the specified token, and return that tag. If this tagger is unable to determine a tag for the specified token, then its backoff tagger is consulted.
|
Decide which tag should be used for the specified token, and return
that tag. If this tagger is unable to determine a tag for the specified
token, return
|
|
|||
backoffThe backoff tagger for this tagger.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Apr 11 14:39:53 2011 | http://epydoc.sourceforge.net |