alessandro trinca tornidor commited on
Commit
ff771f8
·
1 Parent(s): e20c434

test: add missing json event files

Browse files
tests/events/request_thesaurus_phrase_inflated.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "word": "rather severe-looking woman",
3
+ "text": "Instead he was smiling at a rather severe-looking woman who was wearing square glasses exactly the shape of the markings the cat had had around its eyes.",
4
+ "start": 28,
5
+ "end": 55
6
+ }
tests/events/response_thesaurus_phrase_inflated.json ADDED
@@ -0,0 +1,300 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "success": true,
3
+ "original_phrase": "rather severe-looking woman",
4
+ "original_indices": {
5
+ "start": 28,
6
+ "end": 55
7
+ },
8
+ "results": [
9
+ {
10
+ "original_word": "looking",
11
+ "original_indices": {
12
+ "start": 14,
13
+ "end": 21
14
+ },
15
+ "context_info": {
16
+ "pos": "VERB",
17
+ "sentence": "Instead he was smiling at a rather severe-looking woman who was wearing square glasses exactly the shape of the markings the cat had had around its eyes.",
18
+ "grammatical_form": "VBG",
19
+ "context_words": [
20
+ "at",
21
+ "a",
22
+ "rather",
23
+ "severe",
24
+ "-",
25
+ "looking",
26
+ "woman",
27
+ "who",
28
+ "was",
29
+ "wearing",
30
+ "square"
31
+ ],
32
+ "dependency": "amod"
33
+ },
34
+ "synonym_groups": [
35
+ {
36
+ "definition": "give a certain impression or have a certain outward aspect",
37
+ "examples": [
38
+ "She seems to be sleeping",
39
+ "This appears to be a very difficult problem"
40
+ ],
41
+ "wordnet_pos": "v",
42
+ "synonyms": [
43
+ {
44
+ "base_form": "appear",
45
+ "inflected_form": "appearing",
46
+ "matches_context": true
47
+ },
48
+ {
49
+ "base_form": "seem",
50
+ "inflected_form": "seeming",
51
+ "matches_context": true
52
+ }
53
+ ]
54
+ },
55
+ {
56
+ "definition": "search or seek",
57
+ "examples": [
58
+ "We looked all day and finally found the child in the forest",
59
+ "Look elsewhere for the perfect gift!"
60
+ ],
61
+ "wordnet_pos": "v",
62
+ "synonyms": [
63
+ {
64
+ "base_form": "search",
65
+ "inflected_form": "searching",
66
+ "matches_context": true
67
+ }
68
+ ]
69
+ },
70
+ {
71
+ "definition": "be oriented in a certain direction, often with respect to another reference point; be opposite to",
72
+ "examples": [
73
+ "The house looks north",
74
+ "My backyard look onto the pond"
75
+ ],
76
+ "wordnet_pos": "v",
77
+ "synonyms": [
78
+ {
79
+ "base_form": "face",
80
+ "inflected_form": "facing",
81
+ "matches_context": true
82
+ },
83
+ {
84
+ "base_form": "front",
85
+ "inflected_form": "fronting",
86
+ "matches_context": true
87
+ }
88
+ ]
89
+ },
90
+ {
91
+ "definition": "take charge of or deal with",
92
+ "examples": [
93
+ "Could you see about lunch?",
94
+ "I must attend to this matter"
95
+ ],
96
+ "wordnet_pos": "v",
97
+ "synonyms": [
98
+ {
99
+ "base_form": "attend",
100
+ "inflected_form": "attending",
101
+ "matches_context": true
102
+ },
103
+ {
104
+ "base_form": "see",
105
+ "inflected_form": "seeing",
106
+ "matches_context": true
107
+ },
108
+ {
109
+ "base_form": "take care",
110
+ "inflected_form": "taking care",
111
+ "matches_context": true
112
+ }
113
+ ]
114
+ },
115
+ {
116
+ "definition": "look forward to the probable occurrence of",
117
+ "examples": [
118
+ "We were expecting a visit from our relatives",
119
+ "She is looking to a promotion"
120
+ ],
121
+ "wordnet_pos": "v",
122
+ "synonyms": [
123
+ {
124
+ "base_form": "await",
125
+ "inflected_form": "awaiting",
126
+ "matches_context": true
127
+ },
128
+ {
129
+ "base_form": "expect",
130
+ "inflected_form": "expecting",
131
+ "matches_context": true
132
+ },
133
+ {
134
+ "base_form": "wait",
135
+ "inflected_form": "waiting",
136
+ "matches_context": true
137
+ }
138
+ ]
139
+ },
140
+ {
141
+ "definition": "have faith or confidence in",
142
+ "examples": [
143
+ "you can count on me to help you any time",
144
+ "Look to your friends for support"
145
+ ],
146
+ "wordnet_pos": "v",
147
+ "synonyms": [
148
+ {
149
+ "base_form": "bank",
150
+ "inflected_form": "banking",
151
+ "matches_context": true
152
+ },
153
+ {
154
+ "base_form": "bet",
155
+ "inflected_form": "betting",
156
+ "matches_context": true
157
+ },
158
+ {
159
+ "base_form": "calculate",
160
+ "inflected_form": "calculating",
161
+ "matches_context": true
162
+ },
163
+ {
164
+ "base_form": "count",
165
+ "inflected_form": "counting",
166
+ "matches_context": true
167
+ },
168
+ {
169
+ "base_form": "depend",
170
+ "inflected_form": "depending",
171
+ "matches_context": true
172
+ },
173
+ {
174
+ "base_form": "reckon",
175
+ "inflected_form": "reckoning",
176
+ "matches_context": true
177
+ },
178
+ {
179
+ "base_form": "rely",
180
+ "inflected_form": "relying",
181
+ "matches_context": true
182
+ },
183
+ {
184
+ "base_form": "swear",
185
+ "inflected_form": "swearing",
186
+ "matches_context": true
187
+ }
188
+ ]
189
+ }
190
+ ],
191
+ "debug_info": {
192
+ "spacy_token_indices": {
193
+ "start": 42,
194
+ "end": 49
195
+ },
196
+ "lemma": "look"
197
+ }
198
+ },
199
+ {
200
+ "original_word": "woman",
201
+ "original_indices": {
202
+ "start": 22,
203
+ "end": 27
204
+ },
205
+ "context_info": {
206
+ "pos": "NOUN",
207
+ "sentence": "Instead he was smiling at a rather severe-looking woman who was wearing square glasses exactly the shape of the markings the cat had had around its eyes.",
208
+ "grammatical_form": "NN",
209
+ "context_words": [
210
+ "a",
211
+ "rather",
212
+ "severe",
213
+ "-",
214
+ "looking",
215
+ "woman",
216
+ "who",
217
+ "was",
218
+ "wearing",
219
+ "square",
220
+ "glasses"
221
+ ],
222
+ "dependency": "pobj"
223
+ },
224
+ "synonym_groups": [
225
+ {
226
+ "definition": "an adult female person (as opposed to a man)",
227
+ "examples": [
228
+ "the woman kept house while the man hunted"
229
+ ],
230
+ "wordnet_pos": "n",
231
+ "synonyms": [
232
+ {
233
+ "base_form": "adult female",
234
+ "inflected_form": "adult female",
235
+ "matches_context": false
236
+ }
237
+ ]
238
+ },
239
+ {
240
+ "definition": "a human female employed to do housework",
241
+ "examples": [
242
+ "the char will clean the carpet",
243
+ "I have a woman who comes in four hours a day while I write"
244
+ ],
245
+ "wordnet_pos": "n",
246
+ "synonyms": [
247
+ {
248
+ "base_form": "char",
249
+ "inflected_form": "char",
250
+ "matches_context": false
251
+ },
252
+ {
253
+ "base_form": "charwoman",
254
+ "inflected_form": "charwoman",
255
+ "matches_context": false
256
+ },
257
+ {
258
+ "base_form": "cleaning lady",
259
+ "inflected_form": "cleaning lady",
260
+ "matches_context": false
261
+ },
262
+ {
263
+ "base_form": "cleaning woman",
264
+ "inflected_form": "cleaning woman",
265
+ "matches_context": false
266
+ }
267
+ ]
268
+ },
269
+ {
270
+ "definition": "women as a class",
271
+ "examples": [
272
+ "it's an insult to American womanhood",
273
+ "woman is the glory of creation"
274
+ ],
275
+ "wordnet_pos": "n",
276
+ "synonyms": [
277
+ {
278
+ "base_form": "fair sex",
279
+ "inflected_form": "fair sex",
280
+ "matches_context": false
281
+ },
282
+ {
283
+ "base_form": "womanhood",
284
+ "inflected_form": "womanhood",
285
+ "matches_context": false
286
+ }
287
+ ]
288
+ }
289
+ ],
290
+ "debug_info": {
291
+ "spacy_token_indices": {
292
+ "start": 50,
293
+ "end": 55
294
+ },
295
+ "lemma": "woman"
296
+ }
297
+ }
298
+ ],
299
+ "message": "Got 2 synonym groups."
300
+ }