-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdataflags.py
More file actions
42 lines (30 loc) · 821 Bytes
/
dataflags.py
File metadata and controls
42 lines (30 loc) · 821 Bytes
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
from enum import Flag, auto
class position(Flag):
start = auto()
end = auto()
inner = auto()
class intonation(Flag):
plain = auto()
weakly_rising = auto()
falling = auto()
rising = auto()
class volume(Flag):
high = auto()
low = auto()
class tokentype(Flag):
linguistic = auto()
shortpause = auto()
nonverbalbehavior = auto()
error = auto()
warning = auto() # error downgraded because token is in variation context
unknown = auto()
anonymized = auto()
class languagevariation(Flag):
none = auto()
some = auto()
all = auto()
class tokenvariation(Flag):
none = auto()
token = auto() # #word → Variation=Token
emerging = auto() # $word → Variation=Emerging
doubtful = auto() # #*word → Variation=Doubtful