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: Takes open read file as input, initializes attributes 
  of the TextGrid file.
  @type read_file: An open TextGrid file, mode "r".
  @param size:  Number of tiers.
  @param xmin: xmin.
  @param xmax: xmax.
  @param t_time:  Total time of TextGrid file.
  @param text_type:  TextGrid format.
  @type tiers:  A list of tier objects.
docstr_tok: ["Takes","open","read","file","as","input",",","initializes","attributes","of","the","TextGrid","file",".","@","type","read_file",":","An","open","TextGrid","file",",","mode","``","r","''",".","@","param","size",":","Number","of","tiers",".","@","param","xmin",":","xmin",".","@","param","xmax",":","xmax",".","@","param","t_time",":","Total","time","of","TextGrid","file",".","@","param","text_type",":","TextGrid","format",".","@","type","tiers",":","A","list","of","tier","objects","."]
code: def __init__(self, read_file):
      """
      Takes open read file as input, initializes attributes
      of the TextGrid file.
      @type read_file: An open TextGrid file, mode "r".
      @param size:  Number of tiers.
      @param xmin: xmin.
      @param xmax: xmax.
      @param t_time:  Total time of TextGrid file.
      @param text_type:  TextGrid format.
      @type tiers:  A list of tier objects.
      """
  
      self.read_file = read_file
      self.size = 0
      self.xmin = 0
      self.xmax = 0
      self.t_time = 0
      self.text_type = self._check_type()
      self.tiers = self._find_tiers()
  
imports: import sys
  import re
label_desc: Use image node_id 1 to create a new TextGrid object from inherited base classes: object with example: obj = TextGrid(read_file)