(self)
return self.n_feats
We peek the first line and seek back to
        the beginning of the file.
We peek the first line and seek back to
        the beginning of the file.
We peek the first line and seek back to the beginning of the file .
def num_feats(self):
        """
        We peek the first line and seek back to
        the beginning of the file.
        """
        saved_pos = self.corpus.tell()

        line = self.corpus.readline().split()
        if self.line_truncate:
            line = line[:self.line_truncate]
        _, _, self.n_feats = TextDataset.extract_text_features(line)

        self.corpus.seek(saved_pos)

        return self.n_feats
def num_feats ( self ) : saved_pos = self . corpus . tell ( ) line = self . corpus . readline ( ) . split ( ) if self . line_truncate : line = line [ : self . line_truncate ] _ , _ , self . n_feats = TextDataset . extract_text_features ( line ) self . corpus . seek ( saved_pos ) return self . n_feats