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: Process a single input line from the corpus.
  
  Process a single input line from the corpus.  These lines include
  the `uttid` and `text` transcription, while the `uttid` includes
  a `speakerid` and `gender` identifier.  Here we break the pieces
  out and further pass the text to `_cleantext` for normalization.
  
  Args:
      line (str): The input line including uttid and transcription.
  
  Returns:
      uttid (str): The uutterance ID.
      text (str): The normalized transcription.
      gender (str): The gender ID f/m.
      spkrid (str): The speaker ID[first 5 characters of the uttid].
docstr_tok: ["Process","a","single","input","line","from","the","corpus",".","Process","a","single","input","line","from","the","corpus",".","These","lines","include","the","`","uttid","`","and","`","text","`","transcription",",","while","the","`","uttid","`","includes","a","`","speakerid","`","and","`","gender","`","identifier",".","Here","we","break","the","pieces","out","and","further","pass","the","text","to","`","_cleantext","`","for","normalization",".","Args",":","line","(","str",")",":","The","input","line","including","uttid","and","transcription",".","Returns",":","uttid","(","str",")",":","The","uutterance","ID",".","text","(","str",")",":","The","normalized","transcription",".","gender","(","str",")",":","The","gender","ID","f\/m",".","spkrid","(","str",")",":","The","speaker","ID","[","first","5","characters","of","the","uttid","]","."]
code: def _processline(self, line):
      """Process a single input line from the corpus.
  
      Process a single input line from the corpus.  These lines include
      the `uttid` and `text` transcription, while the `uttid` includes
      a `speakerid` and `gender` identifier.  Here we break the pieces
      out and further pass the text to `_cleantext` for normalization.
  
      Args:
          line (str): The input line including uttid and transcription.
  
      Returns:
          uttid (str): The uutterance ID.
          text (str): The normalized transcription.
          gender (str): The gender ID f/m.
          spkrid (str): The speaker ID[first 5 characters of the uttid].
  
      """
      uttid, text = re.split(r"\t", line.strip())
      spkrid = uttid[0:5]
      gender = uttid[0].lower()
      text = self._cleantext(text)
  
      return uttid, text, gender, spkrid
  
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 5 for calling the FrPolyphonePrepper obj's underlying member method code with example usage: obj._processline(line) and returns: uttid,  text,  gender,  spkrid