Package nltk_lite :: Package tag :: Module brill :: Class Brill
[show private | hide private]
[frames | no frames]

Type Brill

object --+    
         |    
      TagI --+
             |
            Brill


Brill's transformational rule-based tagger. Brill taggers use an initial tagger (such as tag.Default) to assign an intial tag sequence to a text; and then apply an ordered list of transformational rules to correct the tags of individual tokens. These transformation rules are specified by the BrillRuleI interface.

Brill taggers can be created directly, from an initial tagger and a list of transformational rules; but more often, Brill taggers are created by learning rules from a training corpus, using either BrillTrainer or FastBrillTrainer.
Method Summary
  __init__(self, initial_tagger, rules)
  rules(self)
  tag(self, tokens)
Assign a tag to each token in tokens, and yield a tagged token of the form (token, tag)
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Method Details

__init__(self, initial_tagger, rules)
(Constructor)

Parameters:
initial_tagger - The initial tagger
           (type=TagI)
rules - An ordered list of transformation rules that should be used to correct the initial tagging.
           (type=list of BrillRuleI)
Overrides:
__builtin__.object.__init__

tag(self, tokens)

Assign a tag to each token in tokens, and yield a tagged token of the form (token, tag)
Overrides:
nltk_lite.tag.TagI.tag (inherited documentation)

Generated by Epydoc 2.1 on Tue Sep 5 09:37:22 2006 http://epydoc.sf.net