#NEWLINE# def __init__( self , train_sents , feature_detector = prev_next_pos_iob , **kwargs ) : #NEWLINE# #INDENT# if ( not feature_detector ) : #NEWLINE# #INDENT# feature_detector = self . feature_detector #NEWLINE# #UNINDENT# train_chunks = chunk_trees2train_chunks ( train_sents ) #NEWLINE# self . tagger = ClassifierBasedTagger ( train = train_chunks , feature_detector = feature_detector , ** kwargs )