-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructs.go
executable file
·45 lines (39 loc) · 1.04 KB
/
structs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package praatgo
// TextGrid objects (contains tiers)
type TextGrid struct {
FileType string `json:"File type"`
Xmin float64 `json:"xmin"`
Xmax float64 `json:"xmax"`
Tiers bool `json:"tiers"`
Size int `json:"size"`
Item []interface{} `json:"item"`
}
// A connected sequence of labeled intervals
type IntervalTier struct {
Class string `json:"class"`
Name string `json:"name"`
Xmin float64 `json:"xmin"`
Xmax float64 `json:"xmax"`
Size int `json:"size"`
Intervals []Interval `json:"intervals"`
}
// Transcription for a given time range
type Interval struct {
Xmin float64 `json:"xmin"`
Xmax float64 `json:"xmax"`
Text string `json:"text"`
}
// A sequence of labeled points
type TextTier struct {
Class string `json:"class"`
Name string `json:"name"`
Xmin float64 `json:"xmin"`
Xmax float64 `json:"xmax"`
Size int `json:"size"`
Points []Point `json:"points"`
}
// An event in time
type Point struct {
Number float64 `json:"number"`
Mark string `json:"mark"`
}