Exemplo n.º 1
0
    def _rttm(self):
        from paderbox.array import intervall as array_intervall
        rttm = array_intervall.from_rttm(self._rttm_path)

        original_keys = tuple(rttm.keys())
        
        # The default scripts have a strange convention and add some postfixes
        # that have to be removed. e.g.:
        # S02_U06.ENH or S02_U06
        rttm = {
            k.replace('_U06', '').replace('.ENH', ''): v
            for k, v in rttm.items()
        }
        assert len(rttm.keys()) == len(original_keys), (rttm.keys(), original_keys)

        return rttm
Exemplo n.º 2
0
 def _data(self):
     from paderbox.array import intervall as array_intervall
     data = array_intervall.from_rttm(self.rttm)
     return data