TextGrid is a segmentation file used by Praat. I would like to write a parser that will then check the data. My question is:
How could you write a parser for this format? Read this one by one or something else? Is this a known format?
File type = "ooTextFile" Object class = "TextGrid" xmin = 0 xmax = 93.0538775510204 tiers? <exists> size = 3 item []: item [1]: class = "IntervalTier" name = "diph" xmin = 0 xmax = 93.0538775510204 intervals: size = 65 intervals [1]: xmin = 0 xmax = 1.300090702947846 text = "" intervals [2]: xmin = 1.300090702947846 xmax = 1.5300845864661654 text = "ey_s" intervals [3]: xmin = 1.5300845864661654 xmax = 3.4648692624493815 text = ""
(This is repeated by EOF at intervals [4 .... n])
source share