class_docstr: Data preparation script for the Swiss French Polyphone corpus.
  
  This class provides the scripting backbone for preparing the
  Swiss French Polyphone corpus for ASR training with espnet.  This
  script was written in reference to the following version of the
  corpus as listed on ELRA:
  
  This class/script, together with the corresponding configuration
  file `conf/dataprep.yaml` perform all required data prep.
  
  .. _ELRA-S0030_02:
      http://catalog.elra.info/en-us/repository/browse/ELRA-S0030_02
class_docstr_tok: ["Data","preparation","script","for","the","Swiss","French","Polyphone","corpus",".","This","class","provides","the","scripting","backbone","for","preparing","the","Swiss","French","Polyphone","corpus","for","ASR","training","with","espnet",".","This","script","was","written","in","reference","to","the","following","version","of","the","corpus","as","listed","on","ELRA",":","This","class\/script",",","together","with","the","corresponding","configuration","file","`","conf\/dataprep.yaml","`","perform","all","required","data","prep",".","..","_ELRA-S0030_02",":","http",":","\/\/catalog.elra.info\/en-us\/repository\/browse\/ELRA-S0030_02"]
docstr: Replicate the original training and eval setup.
  
  Replicate the original training and eval setup using the
  provided speaker ID lists for train/dev/test.
  
  Args:
      corpus (:obj:`dict`): The parsed, merged corpus to split.
docstr_tok: ["Replicate","the","original","training","and","eval","setup",".","Replicate","the","original","training","and","eval","setup","using","the","provided","speaker","ID","lists","for","train\/dev\/test",".","Args",":","corpus","(",":","obj",":","`","dict","`",")",":","The","parsed",",","merged","corpus","to","split","."]
code: def _replicate_existing(self, corpus):
      """Replicate the original training and eval setup.
  
      Replicate the original training and eval setup using the
      provided speaker ID lists for train/dev/test.
  
      Args:
          corpus (:obj:`dict`): The parsed, merged corpus to split.
  
      """
      items = list(self.spkr2utts.items())
  
      for idx, spkr_item in enumerate(items):
          for d_item in spkr_item[1]:
              item = [d_item, corpus[d_item]]
              wav_line = "{0} {1}".format(item[0], item[1]["wav"])
              text_line = "{0} {1}".format(item[0], item[1]["text"])
              utt2gender_line = "{0} {1}".format(
                  item[0], item[1]["gender"]
              )
              utt2spk_line = "{0} {1}".format(item[0], spkr_item[0])
  
              if item[0] in self.trainlist:
                  print(wav_line, file=self.tr_wav_ofp)
                  print(text_line, file=self.tr_text_ofp)
                  print(utt2gender_line, file=self.tr_utt2gender_ofp)
                  print(utt2spk_line, file=self.tr_utt2spk_ofp)
              elif item[0] in self.devlist:
                  print(wav_line, file=self.dv_wav_ofp)
                  print(text_line, file=self.dv_text_ofp)
                  print(utt2gender_line, file=self.dv_utt2gender_ofp)
                  print(utt2spk_line, file=self.dv_utt2spk_ofp)
              elif item[0] in self.testlist:
                  print(wav_line, file=self.te_wav_ofp)
                  print(text_line, file=self.te_text_ofp)
                  print(utt2gender_line, file=self.te_utt2gender_ofp)
                  print(utt2spk_line, file=self.te_utt2spk_ofp)
  
          spk2utt_line = "{0} {1}".format(
              spkr_item[0], " ".join(spkr_item[1])
          )
          if item[0] in self.trainlist:
              print(spk2utt_line, file=self.tr_spk2utt_ofp)
          elif item[0] in self.devlist:
              print(spk2utt_line, file=self.dv_spk2utt_ofp)
          else:
              print(spk2utt_line, file=self.te_spk2utt_ofp)
      return
  
imports: import os
  import pathlib
  import re
  import subprocess
  import sys
  from collections import defaultdict
  from random import shuffle
label_desc: Use image node_id 15 for calling the FrPolyphonePrepper obj's underlying member method code with example usage: obj._replicate_existing(corpus) without return types