<s> from nltk . tag import brill <EOL> def train_brill_tagger ( initial_tagger , train_sents , end , trace = <NUM_LIT:0> , ** kwargs ) : <EOL> bounds = [ ( <NUM_LIT:1> , end ) ] <EOL> templates = [ <EOL> brill . SymmetricProximateTokensTemplate ( brill . ProximateTagsRule , * bounds ) , <EOL> brill . SymmetricProximateTokensTemplate ( brill . ProximateWordsRule , * bounds ) , <EOL> ] <EOL> trainer = brill . FastBrillTaggerTrainer ( initial_tagger , templates , <EOL> deterministic = True , trace = trace ) <EOL> return trainer . train ( train_sents , ** kwargs ) </s>
