def label_for_lm(self, **kwargs):
        "A special labelling method for language models."
        self.__class__ = LMTextList
        kwargs['label_cls'] = LMLabelList
        return self.label_const(0, **kwargs)
def label_for_lm ( self , ** kwargs ) : self . __class__ = LMTextList kwargs [ 'label_cls' ] = LMLabelList return self . label_const ( 0 , ** kwargs )
A special labelling method for language models.