(self, spk_list)
return new_meta
Select speakers and perform a shallow copy.
Select speakers and perform a shallow copy.
Select speakers and perform a shallow copy .
def select_spks(self, spk_list):
    ''' Select speakers and perform a shallow copy. '''
    new_meta = KaldiMetaData()
    for spk in spk_list:
      if spk in self.spks:
        for utt_key in self.spks[spk].utts:
          new_meta.utts[utt_key] = self.utts[utt_key]
    new_meta.collect_spks_from_utts()
    return new_meta
def select_spks ( self , spk_list ) : new_meta = KaldiMetaData ( ) for spk in spk_list : if spk in self . spks : for utt_key in self . spks [ spk ] . utts : new_meta . utts [ utt_key ] = self . utts [ utt_key ] new_meta . collect_spks_from_utts ( ) return new_meta