def evaluate_model(self, model, configuration=EvaluationConfig(10, 1000),
                       meta_data=None):
        if meta_data is None:
            meta_data = {'name': 'UNKNOWN'}

        mer = MorfessorEvaluationResult(meta_data)

        for i, sample in enumerate(self.get_samples(configuration)):
            _logger.debug("Evaluating sample {}".format(i))
            prediction = {}
            for compound in sample:
                prediction[compound] = [tuple(self._segmentation_indices(
                    model.viterbi_segment(compound)[0]))]

            mer.add_data_point(*self._evaluate(prediction))

        return mer
Get the prediction of the test samples from the model and do the
dataset/ETHPy150Open aalto-speech/morfessor/morfessor/evaluation.py/MorfessorEvaluation.evaluate_model