-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathioi_constants.py
146 lines (142 loc) · 3.09 KB
/
ioi_constants.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
original_ioi_names = [
"Michael",
"Christopher",
"Jessica",
"Matthew",
"Ashley",
"Jennifer",
"Joshua",
"Amanda",
"Daniel",
"David",
"James",
"Robert",
"John",
"Joseph",
"Andrew",
"Ryan",
"Brandon",
"Jason",
"Justin",
"Sarah",
"William",
"Jonathan",
"Stephanie",
"Brian",
"Nicole",
"Nicholas",
"Anthony",
"Heather",
"Eric",
"Elizabeth",
"Adam",
"Megan",
"Melissa",
"Kevin",
"Steven",
"Thomas",
"Timothy",
"Christina",
"Kyle",
"Rachel",
"Laura",
"Lauren",
"Amber",
"Brittany",
"Danielle",
"Richard",
"Kimberly",
"Jeffrey",
"Amy",
"Crystal",
"Michelle",
"Tiffany",
"Jeremy",
"Benjamin",
"Mark",
"Emily",
"Aaron",
"Charles",
"Rebecca",
"Jacob",
"Stephen",
"Patrick",
"Sean",
"Erin",
"Jamie",
"Kelly",
"Samantha",
"Nathan",
"Sara",
"Dustin",
"Paul",
"Angela",
"Tyler",
"Scott",
"Katherine",
"Andrea",
"Gregory",
"Erica",
"Mary",
"Travis",
"Lisa",
"Kenneth",
"Bryan",
"Lindsey",
"Kristen",
"Jose",
"Alexander",
"Jesse",
"Katie",
"Lindsay",
"Shannon",
"Vanessa",
"Courtney",
"Christine",
"Alicia",
"Cody",
"Allison",
"Bradley",
"Samuel",
]
BABA_TEMPLATES = [
"Then, [B] and [A] went to the [PLACE]. [B] gave a [OBJECT] to [A]",
"Then, [B] and [A] had a lot of fun at the [PLACE]. [B] gave a [OBJECT] to [A]",
"Then, [B] and [A] were working at the [PLACE]. [B] decided to give a [OBJECT] to [A]",
"Then, [B] and [A] were thinking about going to the [PLACE]. [B] wanted to give a [OBJECT] to [A]",
"Then, [B] and [A] had a long argument, and afterwards [B] said to [A]",
"After [B] and [A] went to the [PLACE], [B] gave a [OBJECT] to [A]",
"When [B] and [A] got a [OBJECT] at the [PLACE], [B] decided to give it to [A]",
"When [B] and [A] got a [OBJECT] at the [PLACE], [B] decided to give the [OBJECT] to [A]",
"While [B] and [A] were working at the [PLACE], [B] gave a [OBJECT] to [A]",
"While [B] and [A] were commuting to the [PLACE], [B] gave a [OBJECT] to [A]",
"After the lunch, [B] and [A] went to the [PLACE]. [B] gave a [OBJECT] to [A]",
"Afterwards, [B] and [A] went to the [PLACE]. [B] gave a [OBJECT] to [A]",
"Then, [B] and [A] had a long argument. Afterwards [B] said to [A]",
"The [PLACE] [B] and [A] went to had a [OBJECT]. [B] gave it to [A]",
"Friends [B] and [A] found a [OBJECT] at the [PLACE]. [B] gave it to [A]",
]
PLACES = [
"store",
"garden",
"restaurant",
"school",
"hospital",
"office",
"house",
"station",
]
OBJECTS = [
"ring",
"kiss",
"bone",
"basketball",
"computer",
"necklace",
"drink",
"snack",
]
NOUNS_DICT = NOUNS_DICT = {"[PLACE]": PLACES, "[OBJECT]": OBJECTS}
# key renaming for refactord code in TransformerLens
NOUNS_DICT['PLACE'] = NOUNS_DICT.pop('[PLACE]')
NOUNS_DICT['OBJECT'] = NOUNS_DICT.pop('[OBJECT]')