def read_parameter_file(self, file_name):
        """Read learned or estimated parameters from a file"""
        params = {}
        line_re = re.compile(r'^(.*)\s*:\s*(.*)$')
        for line in self._read_text_file(file_name):
            m = line_re.match(line.rstrip())
            if m:
                key = m.group(1)
                val = m.group(2)
                try:
                    val = float(val)
                except __HOLE__:
                    pass
                params[key] = val
        return params
dataset/ETHPy150Open aalto-speech/morfessor/morfessor/io.py/MorfessorIO.read_parameter_file