def write_parameter_file(self, file_name, params):
        with self._open_text_file_write(file_name) as file_obj:
            d = datetime.datetime.now().replace(microsecond=0)
            file_obj.write(
                '# Parameters for Morfessor {}, {}\n'.format(
                    self._version, d))
            for (key, val) in params.items():
                file_obj.write('{}:\t{}\n'.format(key, val))
Write learned or estimated parameters to a file
dataset/ETHPy150Open aalto-speech/morfessor/morfessor/io.py/MorfessorIO.write_parameter_file