asrtoolkit/data_handlers/stm.py
def read_file(file_name):
  """
    Reads an STM file, skipping any gap lines
  """
  segments = []
  with open(file_name, encoding="utf-8") as f:
    for line in f:
      seg = parse_line(line)
      if seg is not None:
        segments.append(seg)

  return segments

    Reads an STM file, skipping any gap lines
  
Reads an STM file, skipping any gap lines
Reads an STM file skipping any gap lines
def read_file(file_name):
  segments = []
  with open(file_name, encoding="utf-8") as f:
    for line in f:
      seg = parse_line(line)
      if seg is not None:
        segments.append(seg)
  return segments
def read_file ( file_name ) : segments = [ ] with open ( file_name , encoding = "utf-8" ) as f : for line in f : seg = parse_line ( line ) if seg is not None : segments . append ( seg ) return segments
Reads an STM file, skipping any gap lines
Reads an STM file skipping any gap lines
"""
    Reads an STM file, skipping any gap lines
  """
file_name