def read_corpus_list_file(self, file_name):
        """Read a corpus list file.

        Each line has the format:
        <count> <compound>

        Yield tuples (count, compound, compound_atoms) for each compound.

        """
        _logger.info("Reading corpus from list '%s'..." % file_name)
        for line in self._read_text_file(file_name):
            try:
                count, compound = line.split(None, 1)
                yield int(count), compound, self._split_atoms(compound)
            except __HOLE__:
                yield 1, line, self._split_atoms(line)
        _logger.info("Done.")
dataset/ETHPy150Open aalto-speech/morfessor/morfessor/io.py/MorfessorIO.read_corpus_list_file