-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathConst.py
33 lines (27 loc) · 966 Bytes
/
Const.py
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
"""
Constants for sequences.
"""
# word pad and unk
PAD = 0
UNK = 1
PAD_WORD = '<pad>'
UNK_WORD = '<unk>'
# char pad and unk
cPAD = 0
cUNK = 1
PAD_CHAR = '<cpad>'
UNK_CHAR = '<cunk>'
# focused classes, emotion
four_emo = ['anger', 'joy', 'sadness', 'neutral']
four_iem = ['angry', 'happy', 'sad', 'neutral']
four_meld = ['anger', 'joy', 'sadness', 'neutral']
four_emory = ['mad', 'joyful', 'sad', 'neutral']
four_mosei = ['anger', 'happiness', 'sadness', 'other']
sev_meld = ['anger', 'disgust', 'fear', 'joy', 'neutral', 'sadness', 'surprise']
sev_emory = ['neutral', 'joyful', 'peaceful', 'powerful', 'scared', 'mad', 'sad']
six_mosei = ['happiness', 'sadness', 'anger', 'disgust', 'surprise', 'fear']
two_mosi = ['positive', 'negative']
rest_emo = ['surprise', 'disgust', 'fear', 'non-neutral']
# focused classes, review
five_yelp = ['1', '2', '3', '4', '5']
ten_imdb = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10']