parameters: (stm_file)
return_statement: return stm_segments
docstring: r"""
      Parses an STM file at ``stm_file`` into a list of :class:`STMSegment`.
docstring_summary: r"""
      Parses an STM file at ``stm_file`` into a list of :class:`STMSegment`.
docstring_tokens: r Parses an STM file at stm_file into a list of : class : STMSegment .
function: def parse_stm_file(stm_file):
      r"""
      Parses an STM file at ``stm_file`` into a list of :class:`STMSegment`.
      """
      stm_segments = []
      with codecs.open(stm_file, encoding="utf-8") as stm_lines:
          for stm_line in stm_lines:
              stmSegment = STMSegment(stm_line)
              if not "ignore_time_segment_in_scoring" == stmSegment.transcript:
                  stm_segments.append(stmSegment)
      return stm_segments
function_tokens: def parse_stm_file ( stm_file ) : stm_segments = [ ] with codecs . open ( stm_file , encoding = "utf-8" ) as stm_lines : for stm_line in stm_lines : stmSegment = STMSegment ( stm_line ) if not "ignore_time_segment_in_scoring" == stmSegment . transcript : stm_segments . append ( stmSegment ) return stm_segments