#NEWLINE# def train_stats( self , statistic = None ) : #NEWLINE# #INDENT# '\n        Return a named statistic collected during training, or a dictionary of all\n        available statistics if no name given\n\n        :param statistic: name of statistic\n        :type statistic: str\n        :return: some statistic collected during training of this tagger\n        :rtype: any (but usually a number)\n        ' #NEWLINE# if ( statistic is None ) : #NEWLINE# #INDENT# return self . _training_stats #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . _training_stats . get ( statistic )