class_docstr: Class to manipulate the TextGrid format used by Praat.
  Separates each tier within this file into its own Tier
  object.  Each TextGrid object has
  a number of tiers (size), xmin, xmax, a text type to help
  with the different styles of TextGrid format, and tiers with their
  own attributes.
class_docstr_tok: ["Class","to","manipulate","the","TextGrid","format","used","by","Praat",".","Separates","each","tier","within","this","file","into","its","own","Tier","object",".","Each","TextGrid","object","has","a","number","of","tiers","(","size",")",",","xmin",",","xmax",",","a","text","type","to","help","with","the","different","styles","of","TextGrid","format",",","and","tiers","with","their","own","attributes","."]
docstr: Iterates over each tier and grabs tier information.
docstr_tok: ["Iterates","over","each","tier","and","grabs","tier","information","."]
code: def _load_tiers(self, header):
      """
      Iterates over each tier and grabs tier information.
      """
  
      tiers = []
      if self.text_type == "ChronTextFile":
          m = re.compile(header)
          tier_headers = m.findall(self.read_file)
          tier_re = ' \d+.?\d* \d+.?\d*[\r\n]+"[^"]*"'
          for i in range(0, self.size):
              tier_info = [tier_headers[i]] + re.findall(
                  str(i + 1) + tier_re, self.read_file
              )
              tier_info = "\n".join(tier_info)
              tiers.append(Tier(tier_info, self.text_type, self.t_time))
          return tiers
  
      tier_re = header + "[\s\S]+?(?=" + header + "|$$)"
      m = re.compile(tier_re)
      tier_iter = m.finditer(self.read_file)
      for iterator in tier_iter:
          (begin, end) = iterator.span()
          tier_info = self.read_file[begin:end]
          tiers.append(Tier(tier_info, self.text_type, self.t_time))
      return tiers
  
imports: import sys
  import re
label_desc: Use image node_id 5 for calling the TextGrid obj's underlying member method code with example usage: obj._load_tiers(header) and returns: tiers, tiers