asrtoolkit/data_handlers/stm.py
def format_segment(seg):
  """
    Formats a segment assuming it's an instance of class segment with elements
    audiofile, channel, speaker, start and stop times, label, and text
  """
  return " ".join(seg.__dict__[_] for _ in ('audiofile', 'channel', 'speaker', 'start', 'stop', 'label', 'text'))

    Formats a segment assuming it's an instance of class segment with elements
    audiofile, channel, speaker, start and stop times, label, and text
  
Formats a segment assuming it's an instance of class segment with elements
audiofile, channel, speaker, start and stop times, label, and text
Formats a segment assuming it ' s an instance of class segment with elements audiofile channel speaker start and stop times label and text
def format_segment(seg):
  return " ".join(seg.__dict__[_] for _ in ('audiofile', 'channel', 'speaker', 'start', 'stop', 'label', 'text'))
def format_segment ( seg ) : return " " . join ( seg . __dict__ [ _ ] for _ in ( 'audiofile' , 'channel' , 'speaker' , 'start' , 'stop' , 'label' , 'text' ) )
Formats a segment assuming it's an instance of class segment with elements
audiofile, channel, speaker, start and stop times, label, and text
Formats a segment assuming it ' s an instance of class segment with elements audiofile channel speaker start and stop times label and text
"""
    Formats a segment assuming it's an instance of class segment with elements
    audiofile, channel, speaker, start and stop times, label, and text
  """
seg