ver Aug22nd
Browse filesupdated human-rewritten instruction data
added Changelog
- Changelog +6 -0
- README.md +9 -0
- instruction_rewriting/annotations/merged_doccano.json +2314 -0
- instruction_rewriting/annotations/pattern-article.txt +5 -0
- instruction_rewriting/annotations/pattern-article2.txt +4 -0
- instruction_rewriting/annotations/pattern-author.txt +3 -0
- instruction_rewriting/annotations/pattern-categ.txt +4 -0
- instruction_rewriting/annotations/pattern-search.txt +29 -0
- instruction_rewriting/instruction_rewriting_wrapper.py +79 -0
- instruction_rewriting/sentence_pattern.py +398 -0
- instruction_rewriting/target_handlers.py +355 -0
- replay_url.py +2 -0
Changelog
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
2023-08-22 Danyang Zhang <zhang-dy20@sjtu.edu.cn>
|
2 |
+
|
3 |
+
* instruction_rewriting/ (Human-rewritten instructions): Human-rewritten
|
4 |
+
instructions for the canonical set. Provided the annotation data, the public
|
5 |
+
patterns, and the wrapper tool to load them.
|
6 |
+
* Changelog: Added this file
|
README.md
CHANGED
@@ -66,3 +66,12 @@ Mobile-Env](https://github.com/X-LANCE/Mobile-Env/blob/master/docs/dynamic-app-e
|
|
66 |
The available APK package from [APKCombo](https://apkcombo.com/) is provided.
|
67 |
And note to use the AVD image of version Android 11.0 (API Level 30) (Google
|
68 |
APIs) to obtain the best compatibility and the root-enabled ADBD.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
The available APK package from [APKCombo](https://apkcombo.com/) is provided.
|
67 |
And note to use the AVD image of version Android 11.0 (API Level 30) (Google
|
68 |
APIs) to obtain the best compatibility and the root-enabled ADBD.
|
69 |
+
|
70 |
+
### Human-Rewritten Instructions
|
71 |
+
|
72 |
+
Human-rewritten instructions for the *canonical set* are release under
|
73 |
+
`instruction_rewriting/`. An AndroidEnv wrapper `InstructionRewritingWrapper`
|
74 |
+
is provided to load the rewritten instructions (`merged_doccano.json`) and
|
75 |
+
public patterns (`pattern-*.txt`). The annotations are collected via
|
76 |
+
[doccano](https://doccano.github.io/doccano/). The patterns are parsed by
|
77 |
+
[`sentence_pattern.py`](instruction_rewriting/sentence_pattern.py).
|
instruction_rewriting/annotations/merged_doccano.json
ADDED
@@ -0,0 +1,2314 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"id": 1091,
|
4 |
+
"text": "Search an article to learn how to 180 on a scooter.",
|
5 |
+
"task": "180_on_a_scooter-8.textproto",
|
6 |
+
"index": "0",
|
7 |
+
"label": [
|
8 |
+
"Look for an article on how to do a 180 on a scooter.",
|
9 |
+
"How to 180 on a scooter?",
|
10 |
+
"Give me a guide teaching the 180 trick for the scooter.",
|
11 |
+
"I want to learn to perform a 180 rotation on a scooter."
|
12 |
+
]
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"id": 1092,
|
16 |
+
"text": "Search an article to learn how to add a contact on whatsapp.",
|
17 |
+
"task": "add_a_contact_on_whatsapp-8.textproto",
|
18 |
+
"index": "0",
|
19 |
+
"label": [
|
20 |
+
"Look for an article about how to add a contact on WhatsApp.",
|
21 |
+
"If I want to add a contact on whatsapp, what should I do?",
|
22 |
+
"Where can we add new contacts on Whatsapp?"
|
23 |
+
]
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"id": 1093,
|
27 |
+
"text": "Search an article to learn how to address a letter to england.",
|
28 |
+
"task": "address_a_letter_to_england-7.textproto",
|
29 |
+
"index": "0",
|
30 |
+
"label": [
|
31 |
+
"How should I address a letter to England properly?",
|
32 |
+
"What should I write to address a letter to england?",
|
33 |
+
"How should I fill the address for a letter to England?"
|
34 |
+
]
|
35 |
+
},
|
36 |
+
{
|
37 |
+
"id": 1095,
|
38 |
+
"text": "Search an article to learn how to apply cc cream.",
|
39 |
+
"task": "apply_cc_cream-0.textproto",
|
40 |
+
"index": "0",
|
41 |
+
"label": [
|
42 |
+
"Learn how to use cc cream through reading an article.",
|
43 |
+
"How to apply cc cream?",
|
44 |
+
"I want to learn the usage of color control cream.",
|
45 |
+
"I wonder the usage of CC cream."
|
46 |
+
]
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"id": 1096,
|
50 |
+
"text": "Search an article to learn how to apply neosporin.",
|
51 |
+
"task": "apply_neosporin-0.textproto",
|
52 |
+
"index": "0",
|
53 |
+
"label": [
|
54 |
+
"Look up how to use neosporin.",
|
55 |
+
"Search for the way to apply neosporin.",
|
56 |
+
"I need to learn how Neosporin is applied when injured."
|
57 |
+
]
|
58 |
+
},
|
59 |
+
{
|
60 |
+
"id": 1098,
|
61 |
+
"text": "Search an article to learn how to avoid losing a friend to someone you hate.",
|
62 |
+
"task": "avoid_losing_a_friend_to_someone_you_hate-0.textproto",
|
63 |
+
"index": "0",
|
64 |
+
"label": [
|
65 |
+
"How to avoid losing a friend because of someone you hate.",
|
66 |
+
"If I have a friend, what should I do to avoid losing him or her to someone I hate?",
|
67 |
+
"I don't want to break our friendship because of a man I hate."
|
68 |
+
]
|
69 |
+
},
|
70 |
+
{
|
71 |
+
"id": 1099,
|
72 |
+
"text": "Search an article to learn how to avoid misgendering.",
|
73 |
+
"task": "avoid_misgendering-0.textproto",
|
74 |
+
"index": "0",
|
75 |
+
"label": [
|
76 |
+
"What should I do to avoid misgendering?",
|
77 |
+
"I want to learn to prevent misgendering.",
|
78 |
+
"Please tell me how to avoid identifying or presupposing a wrong gender for others."
|
79 |
+
]
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"id": 1100,
|
83 |
+
"text": "Search an article to learn how to bake lobster tails.",
|
84 |
+
"task": "bake_lobster_tails-7.textproto",
|
85 |
+
"index": "0",
|
86 |
+
"label": [
|
87 |
+
"Look for an article on how to bake lobster tails.",
|
88 |
+
"What's the procedure to bake lobster tails.",
|
89 |
+
"How do we roast lobster tails?"
|
90 |
+
]
|
91 |
+
},
|
92 |
+
{
|
93 |
+
"id": 1101,
|
94 |
+
"text": "Search an article to learn how to be a good friend to a guy.",
|
95 |
+
"task": "be_a_good_friend_to_a_guy-4.textproto",
|
96 |
+
"index": "0",
|
97 |
+
"label": [
|
98 |
+
"Look for an article about how to be a good friend to a guy.",
|
99 |
+
"What if I want to be a good friend to a guy?",
|
100 |
+
"I'd like to learn how to build good friendship with a boy."
|
101 |
+
]
|
102 |
+
},
|
103 |
+
{
|
104 |
+
"id": 1102,
|
105 |
+
"text": "Search an article to learn how to be a hip grandma.",
|
106 |
+
"task": "be_a_hip_grandma-0.textproto",
|
107 |
+
"index": "0",
|
108 |
+
"label": [
|
109 |
+
"find out how to be a cool granny",
|
110 |
+
"How to be a hip grandma?",
|
111 |
+
"How can a grandma be fashion?"
|
112 |
+
]
|
113 |
+
},
|
114 |
+
{
|
115 |
+
"id": 1103,
|
116 |
+
"text": "Search an article to learn how to be cool in high school (boys).",
|
117 |
+
"task": "be_cool_in_high_school_P28boysP29-0.textproto",
|
118 |
+
"index": "0",
|
119 |
+
"label": [
|
120 |
+
"How can a boy be cool in high school?",
|
121 |
+
"As boys, what should they do to be cool in high schools?",
|
122 |
+
"What can a high school boy do to become cool?"
|
123 |
+
]
|
124 |
+
},
|
125 |
+
{
|
126 |
+
"id": 1104,
|
127 |
+
"text": "Search an article to learn how to be feisty.",
|
128 |
+
"task": "be_feisty-7.textproto",
|
129 |
+
"index": "0",
|
130 |
+
"label": [
|
131 |
+
"Learn how to be feisty by reading an article.",
|
132 |
+
"How can I be feisty?",
|
133 |
+
"How do we become a feisty person?"
|
134 |
+
]
|
135 |
+
},
|
136 |
+
{
|
137 |
+
"id": 1105,
|
138 |
+
"text": "Search an article to learn how to be free.",
|
139 |
+
"task": "be_free-0.textproto",
|
140 |
+
"index": "0",
|
141 |
+
"label": [
|
142 |
+
"How to be free?",
|
143 |
+
"How to be free?",
|
144 |
+
"How can I acquire the real freedom?",
|
145 |
+
"How can we live free?"
|
146 |
+
]
|
147 |
+
},
|
148 |
+
{
|
149 |
+
"id": 1106,
|
150 |
+
"text": "Search an article to learn how to be popular on tagged.com.",
|
151 |
+
"task": "be_popular_on_tagged.com-7.textproto",
|
152 |
+
"index": "0",
|
153 |
+
"label": [
|
154 |
+
"I want to understand how to get popular on tagged.com.",
|
155 |
+
"How can I be popular on tagged.com?",
|
156 |
+
"How can I become famous on tagged.com?",
|
157 |
+
"How can I become popular on tagged.com?"
|
158 |
+
]
|
159 |
+
},
|
160 |
+
{
|
161 |
+
"id": 1107,
|
162 |
+
"text": "Search an article to learn how to become a grandmaster.",
|
163 |
+
"task": "become_a_grandmaster-7.textproto",
|
164 |
+
"index": "0",
|
165 |
+
"label": [
|
166 |
+
"How to become a master's in special.",
|
167 |
+
"How can I become a grandmaster?",
|
168 |
+
"How can I become a skilled master?"
|
169 |
+
]
|
170 |
+
},
|
171 |
+
{
|
172 |
+
"id": 1108,
|
173 |
+
"text": "Search an article to learn how to become a hooters girl.",
|
174 |
+
"task": "become_a_hooters_girl-8.textproto",
|
175 |
+
"index": "0",
|
176 |
+
"label": [
|
177 |
+
"How to be a hooters girl?",
|
178 |
+
"I want to become a hooters girl, so what should I do?",
|
179 |
+
"How can a girl become a Hooters Girl waitress?"
|
180 |
+
]
|
181 |
+
},
|
182 |
+
{
|
183 |
+
"id": 1109,
|
184 |
+
"text": "Search an article to learn how to become a pro football(soccer) manager.",
|
185 |
+
"task": "become_a_pro_footballP28soccerP29_manager-7.textproto",
|
186 |
+
"index": "0",
|
187 |
+
"label": [
|
188 |
+
"Find an article about how to become a professional football (soccer) manager.",
|
189 |
+
"Search for a tutorial for becoming a professional soccer manager.",
|
190 |
+
"How can I become a professional manager for a football team?",
|
191 |
+
"I want to become a professional football manager."
|
192 |
+
]
|
193 |
+
},
|
194 |
+
{
|
195 |
+
"id": 1110,
|
196 |
+
"text": "Search an article to learn how to become a specialist physician.",
|
197 |
+
"task": "become_a_specialist_physician-4.textproto",
|
198 |
+
"index": "0",
|
199 |
+
"label": [
|
200 |
+
"Learn how to become a specialty physician.",
|
201 |
+
"How to be a professional physician.",
|
202 |
+
"I want to become a physician specialized in a particular field."
|
203 |
+
]
|
204 |
+
},
|
205 |
+
{
|
206 |
+
"id": 1111,
|
207 |
+
"text": "Search an article to learn how to build a carport.",
|
208 |
+
"task": "build_a_carport-7.textproto",
|
209 |
+
"index": "0",
|
210 |
+
"label": [
|
211 |
+
"Find out how to construct a carport.",
|
212 |
+
"What is the procedure to build a carport?",
|
213 |
+
"I'd like to learn to build a small garage."
|
214 |
+
]
|
215 |
+
},
|
216 |
+
{
|
217 |
+
"id": 1112,
|
218 |
+
"text": "Search an article to learn how to build a robot car.",
|
219 |
+
"task": "build_a_robot_car-8.textproto",
|
220 |
+
"index": "0",
|
221 |
+
"label": [
|
222 |
+
"Look for an article on how to create a robot automobile.",
|
223 |
+
"Search the way to build a robot car.",
|
224 |
+
"I want to learn to make a robot car."
|
225 |
+
]
|
226 |
+
},
|
227 |
+
{
|
228 |
+
"id": 1113,
|
229 |
+
"text": "Search an article to learn how to build rafts.",
|
230 |
+
"task": "build_rafts-0.textproto",
|
231 |
+
"index": "0",
|
232 |
+
"label": [
|
233 |
+
"Find a way to build rafts.",
|
234 |
+
"What is the procedure to build rafts?",
|
235 |
+
"I'd like to learn the skill to make a raft."
|
236 |
+
]
|
237 |
+
},
|
238 |
+
{
|
239 |
+
"id": 1114,
|
240 |
+
"text": "Search an article to learn how to buy an apartment with no money down.",
|
241 |
+
"task": "buy_an_apartment_with_no_money_down-8.textproto",
|
242 |
+
"index": "0",
|
243 |
+
"label": [
|
244 |
+
"How can one purchase a home with no money down?",
|
245 |
+
"If I was no money down, how can I buy an aprtment?",
|
246 |
+
"Can I purchase an apartment if I cannot afford the down payment for now?"
|
247 |
+
]
|
248 |
+
},
|
249 |
+
{
|
250 |
+
"id": 1115,
|
251 |
+
"text": "Search an article to learn how to buy stocks (for beginners).",
|
252 |
+
"task": "buy_stocks_P28for_beginnersP29-6.textproto",
|
253 |
+
"index": "0",
|
254 |
+
"label": [
|
255 |
+
"Explore how to acquire stocks.",
|
256 |
+
"What should a beginner learn to buy stocks?",
|
257 |
+
"How should a novice try investment in stocks?"
|
258 |
+
]
|
259 |
+
},
|
260 |
+
{
|
261 |
+
"id": 1116,
|
262 |
+
"text": "Search an article to learn how to bypass youtube's regional filter.",
|
263 |
+
"task": "bypass_youtubeP27s_regional_filter-6.textproto",
|
264 |
+
"index": "0",
|
265 |
+
"label": [
|
266 |
+
"How to get around YouTube's regional filters.",
|
267 |
+
"Youtube's regional filter stops me from watching some videos. How to bypass it?",
|
268 |
+
"I want to watch a youtube video disabled in my region."
|
269 |
+
]
|
270 |
+
},
|
271 |
+
{
|
272 |
+
"id": 1117,
|
273 |
+
"text": "Search an article to learn how to call the czech republic from the united states.",
|
274 |
+
"task": "call_the_czech_republic_from_the_united_states-4.textproto",
|
275 |
+
"index": "0",
|
276 |
+
"label": [
|
277 |
+
"Call the Czech Republic from the United States.",
|
278 |
+
"In united states, how can I call the czech republic?",
|
279 |
+
"I want to make a call from the USA to Czech.",
|
280 |
+
"I want to make a call from the United States to Czech.",
|
281 |
+
"Is there a way for us to call Czech from the United States?"
|
282 |
+
]
|
283 |
+
},
|
284 |
+
{
|
285 |
+
"id": 1118,
|
286 |
+
"text": "Search an article to learn how to care for florida white rabbits.",
|
287 |
+
"task": "care_for_florida_white_rabbits-4.textproto",
|
288 |
+
"index": "0",
|
289 |
+
"label": [
|
290 |
+
"I want to learn about Florida white rabbit care.",
|
291 |
+
"I have some florida white rabbits. What can I do for them?",
|
292 |
+
"I need to learn how to look after a florida white rabbit."
|
293 |
+
]
|
294 |
+
},
|
295 |
+
{
|
296 |
+
"id": 1119,
|
297 |
+
"text": "Search an article to learn how to change a lightbulb in a recessed light.",
|
298 |
+
"task": "change_a_lightbulb_in_a_recessed_light-8.textproto",
|
299 |
+
"index": "0",
|
300 |
+
"label": [
|
301 |
+
"Look up how to change a lightbulb in a recessed light in an article.",
|
302 |
+
"How can I replace the bulb in a recessed lamp?"
|
303 |
+
]
|
304 |
+
},
|
305 |
+
{
|
306 |
+
"id": 1120,
|
307 |
+
"text": "Search an article to learn how to change an excel sheet from read only.",
|
308 |
+
"task": "change_an_excel_sheet_from_read_only-4.textproto",
|
309 |
+
"index": "0",
|
310 |
+
"label": [
|
311 |
+
"How to modify a read-only excel sheet?",
|
312 |
+
"How to change an excel sheet from read only.",
|
313 |
+
"Is there any way to make modifications to a read-only Excel sheet?"
|
314 |
+
]
|
315 |
+
},
|
316 |
+
{
|
317 |
+
"id": 1121,
|
318 |
+
"text": "Search an article to learn how to change your yahoo email address.",
|
319 |
+
"task": "change_your_yahoo_email_address-6.textproto",
|
320 |
+
"index": "0",
|
321 |
+
"label": [
|
322 |
+
"Discover how to change your Yahoo email address via searching for an article.",
|
323 |
+
"How to change my yahoo mail address?",
|
324 |
+
"How do I change a new address for my Yahoo email?"
|
325 |
+
]
|
326 |
+
},
|
327 |
+
{
|
328 |
+
"id": 1122,
|
329 |
+
"text": "Search an article to learn how to choose a foam roller.",
|
330 |
+
"task": "choose_a_foam_roller-6.textproto",
|
331 |
+
"index": "0",
|
332 |
+
"label": [
|
333 |
+
"How to deal with choosing a foam roller?",
|
334 |
+
"How can I know what type of foam roller suits me the best?"
|
335 |
+
]
|
336 |
+
},
|
337 |
+
{
|
338 |
+
"id": 1123,
|
339 |
+
"text": "Search an article to learn how to choose a swiss army knife.",
|
340 |
+
"task": "choose_a_swiss_army_knife-8.textproto",
|
341 |
+
"index": "0",
|
342 |
+
"label": [
|
343 |
+
"How to select a Swiss Army Knife",
|
344 |
+
"Is there any trick in choosing a swiss army knife?",
|
345 |
+
"How do I select a suitable swiss army knife?"
|
346 |
+
]
|
347 |
+
},
|
348 |
+
{
|
349 |
+
"id": 1124,
|
350 |
+
"text": "Search an article to learn how to clean a minor wound.",
|
351 |
+
"task": "clean_a_minor_wound-8.textproto",
|
352 |
+
"index": "0",
|
353 |
+
"label": [
|
354 |
+
"how to care for a small wound?",
|
355 |
+
"If I had a minor wound, how can I clean it?",
|
356 |
+
"How should I handle a small cut on body?",
|
357 |
+
"What's the correct approach to deal with a small wound?"
|
358 |
+
]
|
359 |
+
},
|
360 |
+
{
|
361 |
+
"id": 1125,
|
362 |
+
"text": "Search an article to learn how to clean a nonstick pan.",
|
363 |
+
"task": "clean_a_nonstick_pan-4.textproto",
|
364 |
+
"index": "0",
|
365 |
+
"label": [
|
366 |
+
"How to wash a nonstick pan.",
|
367 |
+
"What are the steps to clean a nonstick pan?",
|
368 |
+
"How should I brush my nonstick pan after cooking?"
|
369 |
+
]
|
370 |
+
},
|
371 |
+
{
|
372 |
+
"id": 1126,
|
373 |
+
"text": "Search an article to learn how to clean a trampoline mat.",
|
374 |
+
"task": "clean_a_trampoline_mat-7.textproto",
|
375 |
+
"index": "0",
|
376 |
+
"label": [
|
377 |
+
"What are the steps to clean a trampoline mat?",
|
378 |
+
"I need to learn to rinse a trampoline mat."
|
379 |
+
]
|
380 |
+
},
|
381 |
+
{
|
382 |
+
"id": 1127,
|
383 |
+
"text": "Search an article to learn how to clean paua shells.",
|
384 |
+
"task": "clean_paua_shells-8.textproto",
|
385 |
+
"index": "0",
|
386 |
+
"label": [
|
387 |
+
"Look up how to clean paua shells.",
|
388 |
+
"Search a way to clean paua shells.",
|
389 |
+
"How do people wash the paua shells?"
|
390 |
+
]
|
391 |
+
},
|
392 |
+
{
|
393 |
+
"id": 1128,
|
394 |
+
"text": "Search an article to learn how to clean utensils.",
|
395 |
+
"task": "clean_utensils-7.textproto",
|
396 |
+
"index": "0",
|
397 |
+
"label": [
|
398 |
+
"How do I wash the utensils?"
|
399 |
+
]
|
400 |
+
},
|
401 |
+
{
|
402 |
+
"id": 1129,
|
403 |
+
"text": "Search an article to learn how to clean yourself in the bath.",
|
404 |
+
"task": "clean_yourself_in_the_bath-0.textproto",
|
405 |
+
"index": "0",
|
406 |
+
"label": [
|
407 |
+
"How to bathe oneself in cleanliness?",
|
408 |
+
"How do I clean myself in the bath?",
|
409 |
+
"I want to try washing in the bath."
|
410 |
+
]
|
411 |
+
},
|
412 |
+
{
|
413 |
+
"id": 1130,
|
414 |
+
"text": "Search an article to learn how to color streak a ponytail.",
|
415 |
+
"task": "color_streak_a_ponytail-0.textproto",
|
416 |
+
"index": "0",
|
417 |
+
"label": [
|
418 |
+
"Discover how to color streak a ponytail.",
|
419 |
+
"How to streak a ponytail with color.",
|
420 |
+
"How do people make the ponytail dyed streaky?",
|
421 |
+
"I want to try highlights for my ponytail."
|
422 |
+
]
|
423 |
+
},
|
424 |
+
{
|
425 |
+
"id": 1131,
|
426 |
+
"text": "Search an article to learn how to come up with a movie idea.",
|
427 |
+
"task": "come_up_with_a_movie_idea-4.textproto",
|
428 |
+
"index": "0",
|
429 |
+
"label": [
|
430 |
+
"How to generate a plot for a movie?",
|
431 |
+
"What if I want to come up with a movie idea?",
|
432 |
+
"How do people get an idea about a movie?",
|
433 |
+
"I want to know how to work out a movie plan.",
|
434 |
+
"Tell me how to think out a film idea."
|
435 |
+
]
|
436 |
+
},
|
437 |
+
{
|
438 |
+
"id": 1132,
|
439 |
+
"text": "Search an article to learn how to completely customize a tech deck.",
|
440 |
+
"task": "completely_customize_a_tech_deck-8.textproto",
|
441 |
+
"index": "0",
|
442 |
+
"label": [
|
443 |
+
"How can I totally personalize a tech deck?",
|
444 |
+
"How do I customize a tech deck from scratch?",
|
445 |
+
"I need some plan to customize my own fingerboard."
|
446 |
+
]
|
447 |
+
},
|
448 |
+
{
|
449 |
+
"id": 1133,
|
450 |
+
"text": "Search an article to learn how to connect a laptop to a projector.",
|
451 |
+
"task": "connect_a_laptop_to_a_projector-8.textproto",
|
452 |
+
"index": "0",
|
453 |
+
"label": [
|
454 |
+
"Explore how to hook up a laptop to a projector.",
|
455 |
+
"What are the steps to connect a laptop to a projector?",
|
456 |
+
"I want to learn how to display the screen of a laptop by a projector.",
|
457 |
+
"I want to learn how to project the desktop of a laptop onto a film."
|
458 |
+
]
|
459 |
+
},
|
460 |
+
{
|
461 |
+
"id": 1134,
|
462 |
+
"text": "Search an article to learn how to contact avast customer support.",
|
463 |
+
"task": "contact_avast_customer_support-7.textproto",
|
464 |
+
"index": "0",
|
465 |
+
"label": [
|
466 |
+
"How to get in touch with avast customer support.",
|
467 |
+
"My avast software does not work. How do I contact the customer support?",
|
468 |
+
"How can I get help from avast customer service?"
|
469 |
+
]
|
470 |
+
},
|
471 |
+
{
|
472 |
+
"id": 1135,
|
473 |
+
"text": "Search an article to learn how to contact lin manuel miranda.",
|
474 |
+
"task": "contact_lin_manuel_miranda-8.textproto",
|
475 |
+
"index": "0",
|
476 |
+
"label": [
|
477 |
+
"Show me lin manuel miranda's contact information",
|
478 |
+
"How can I contact lin manuel miranda?",
|
479 |
+
"Is there a way for me to have a communication with Lin Manuel Miranda?"
|
480 |
+
]
|
481 |
+
},
|
482 |
+
{
|
483 |
+
"id": 1136,
|
484 |
+
"text": "Search an article to learn how to contact xbox live.",
|
485 |
+
"task": "contact_xbox_live-8.textproto",
|
486 |
+
"index": "0",
|
487 |
+
"label": [
|
488 |
+
"how to contact xbox live?",
|
489 |
+
"How to contact xbox live?",
|
490 |
+
"Is there anyway for me to seek support from the XBox Live?"
|
491 |
+
]
|
492 |
+
},
|
493 |
+
{
|
494 |
+
"id": 1137,
|
495 |
+
"text": "Search an article to learn how to cook blood sausage.",
|
496 |
+
"task": "cook_blood_sausage-7.textproto",
|
497 |
+
"index": "0",
|
498 |
+
"label": [
|
499 |
+
"How to prepare blood sausage?",
|
500 |
+
"How to cook blood sausage?",
|
501 |
+
"I'd like to learn a recipe about the blood sausage."
|
502 |
+
]
|
503 |
+
},
|
504 |
+
{
|
505 |
+
"id": 1138,
|
506 |
+
"text": "Search an article to learn how to cook jacket potatoes.",
|
507 |
+
"task": "cook_jacket_potatoes-4.textproto",
|
508 |
+
"index": "0",
|
509 |
+
"label": [
|
510 |
+
"How to prepare jacket potatoes?",
|
511 |
+
"How to make food with delicious jacket potatoes?",
|
512 |
+
"Search me several recipes using jacket potatoes."
|
513 |
+
]
|
514 |
+
},
|
515 |
+
{
|
516 |
+
"id": 1139,
|
517 |
+
"text": "Search an article to learn how to cover a ponytail with hair.",
|
518 |
+
"task": "cover_a_ponytail_with_hair-0.textproto",
|
519 |
+
"index": "0",
|
520 |
+
"label": [
|
521 |
+
"Learn how to hide a ponytail with your hair.",
|
522 |
+
"What is the best way to cover a ponytail with hair?",
|
523 |
+
"I want to find a way to hide my ponytail under the hair."
|
524 |
+
]
|
525 |
+
},
|
526 |
+
{
|
527 |
+
"id": 1140,
|
528 |
+
"text": "Search an article to learn how to craft blu tack jewelry and accessories.",
|
529 |
+
"task": "craft_blu_tack_jewelry_and_accessories-8.textproto",
|
530 |
+
"index": "0",
|
531 |
+
"label": [
|
532 |
+
"How to make accessories and jewelry out of blu tack?",
|
533 |
+
"Is there any way to craft blu tack jewelry and accessories.",
|
534 |
+
"Can I learn to make jewelry from blu tack?"
|
535 |
+
]
|
536 |
+
},
|
537 |
+
{
|
538 |
+
"id": 1141,
|
539 |
+
"text": "Search an article to learn how to create a password you can remember.",
|
540 |
+
"task": "create_a_password_you_can_remember-0.textproto",
|
541 |
+
"index": "0",
|
542 |
+
"label": [
|
543 |
+
"How do you make a memorable password?",
|
544 |
+
"How to create a password easy to be remebered?",
|
545 |
+
"How can I set a password easy to remember?"
|
546 |
+
]
|
547 |
+
},
|
548 |
+
{
|
549 |
+
"id": 1142,
|
550 |
+
"text": "Search an article to learn how to cut limes.",
|
551 |
+
"task": "cut_limes-0.textproto",
|
552 |
+
"index": "0",
|
553 |
+
"label": [
|
554 |
+
"Discover how to chop limes.",
|
555 |
+
"How to cut a lime?",
|
556 |
+
"What's a better way to cut a lime?"
|
557 |
+
]
|
558 |
+
},
|
559 |
+
{
|
560 |
+
"id": 1143,
|
561 |
+
"text": "Search an article to learn how to darken your skin.",
|
562 |
+
"task": "darken_your_skin-0.textproto",
|
563 |
+
"index": "0",
|
564 |
+
"label": [
|
565 |
+
"Search for an article about how to make your skin darker.",
|
566 |
+
"If I would like to darken my skin, what should I do?",
|
567 |
+
"How can I get tan?",
|
568 |
+
"I want to get a healthy tan skin."
|
569 |
+
]
|
570 |
+
},
|
571 |
+
{
|
572 |
+
"id": 1144,
|
573 |
+
"text": "Search an article to learn how to deal with \"type a\" personalities.",
|
574 |
+
"task": "deal_with_P22type_aP22_personalities-8.textproto",
|
575 |
+
"index": "0",
|
576 |
+
"label": [
|
577 |
+
"How to get along with people with \"type A\" personality",
|
578 |
+
"How can I deal with my friend who is of \"type a\" personality?",
|
579 |
+
"I have some difficulties to communicate with the people who have a so-called \"Type A\" personality and want to learn to do."
|
580 |
+
]
|
581 |
+
},
|
582 |
+
{
|
583 |
+
"id": 1145,
|
584 |
+
"text": "Search an article to learn how to deal with an existential crisis.",
|
585 |
+
"task": "deal_with_an_existential_crisis-7.textproto",
|
586 |
+
"index": "0",
|
587 |
+
"label": [
|
588 |
+
"Look for an article about how to cope with an existential problem.",
|
589 |
+
"Is there any way to deal with an existential crisis?",
|
590 |
+
"How can I overcome a sudden crisis sense of existence?"
|
591 |
+
]
|
592 |
+
},
|
593 |
+
{
|
594 |
+
"id": 1146,
|
595 |
+
"text": "Search an article to learn how to deal with little sisters.",
|
596 |
+
"task": "deal_with_little_sisters-6.textproto",
|
597 |
+
"index": "0",
|
598 |
+
"label": [
|
599 |
+
"how to deal with younger sisters?",
|
600 |
+
"How to have fun with my little sisters?",
|
601 |
+
"I don't know how to get along with my little sisters."
|
602 |
+
]
|
603 |
+
},
|
604 |
+
{
|
605 |
+
"id": 1147,
|
606 |
+
"text": "Search an article to learn how to deal with taking a break in a relationship.",
|
607 |
+
"task": "deal_with_taking_a_break_in_a_relationship-8.textproto",
|
608 |
+
"index": "0",
|
609 |
+
"label": [
|
610 |
+
"In a relationship, how can I take a break?",
|
611 |
+
"How can we keep a relationship in the rest time?"
|
612 |
+
]
|
613 |
+
},
|
614 |
+
{
|
615 |
+
"id": 1148,
|
616 |
+
"text": "Search an article to learn how to determine shipping costs.",
|
617 |
+
"task": "determine_shipping_costs-8.textproto",
|
618 |
+
"index": "0",
|
619 |
+
"label": [
|
620 |
+
"How to calculate shipping expenses?",
|
621 |
+
"How can I determine shipping costs?",
|
622 |
+
"How can we easily calculate the postage of a package.",
|
623 |
+
"How can we easily calculate the shipping cost of a package."
|
624 |
+
]
|
625 |
+
},
|
626 |
+
{
|
627 |
+
"id": 1149,
|
628 |
+
"text": "Search an article to learn how to do a reverse lunge.",
|
629 |
+
"task": "do_a_reverse_lunge-8.textproto",
|
630 |
+
"index": "0",
|
631 |
+
"label": [
|
632 |
+
"How can I perform a reverse lunge?",
|
633 |
+
"How to do a reverse lunge?",
|
634 |
+
"Teach me the correct way to exercise with reverse lunge."
|
635 |
+
]
|
636 |
+
},
|
637 |
+
{
|
638 |
+
"id": 1150,
|
639 |
+
"text": "Search an article to learn how to do ruby rose hair.",
|
640 |
+
"task": "do_ruby_rose_hair-0.textproto",
|
641 |
+
"index": "0",
|
642 |
+
"label": [
|
643 |
+
"How to style ruby rose hair?",
|
644 |
+
"How to make ruby rose hair?",
|
645 |
+
"How can I get a Ruby Rose style look?",
|
646 |
+
"How can I have my hair look like Ruby Rose?"
|
647 |
+
]
|
648 |
+
},
|
649 |
+
{
|
650 |
+
"id": 1151,
|
651 |
+
"text": "Search an article to learn how to do something for the first time.",
|
652 |
+
"task": "do_something_for_the_first_time-0.textproto",
|
653 |
+
"index": "0",
|
654 |
+
"label": [
|
655 |
+
"How to perform a task for the first time?",
|
656 |
+
"If it is the first time I do something, how do I do it?",
|
657 |
+
"How should I begin something new?",
|
658 |
+
"Is there anything to pay attention to attempt a new a thing."
|
659 |
+
]
|
660 |
+
},
|
661 |
+
{
|
662 |
+
"id": 1152,
|
663 |
+
"text": "Search an article to learn how to draw a hilbert curve.",
|
664 |
+
"task": "draw_a_hilbert_curve-7.textproto",
|
665 |
+
"index": "0",
|
666 |
+
"label": [
|
667 |
+
"Please tell me how to draw a Hilbert curve.",
|
668 |
+
"What is the procedure to draw a hilbert curve?",
|
669 |
+
"Can a hilbert curve be hand drawn?",
|
670 |
+
"I wonder how to hand draw a hilbert curve."
|
671 |
+
]
|
672 |
+
},
|
673 |
+
{
|
674 |
+
"id": 1153,
|
675 |
+
"text": "Search an article to learn how to dress and groom yourself for a movie date.",
|
676 |
+
"task": "dress_and_groom_yourself_for_a_movie_date-7.textproto",
|
677 |
+
"index": "0",
|
678 |
+
"label": [
|
679 |
+
"Give me some tips on how to groom and dress up for a movie date.",
|
680 |
+
"When I'm going for a movie date, how do I dress and groom myself?",
|
681 |
+
"Give me some suggestion about dressing up for a movie date."
|
682 |
+
]
|
683 |
+
},
|
684 |
+
{
|
685 |
+
"id": 1154,
|
686 |
+
"text": "Search an article to learn how to dress as a petite woman.",
|
687 |
+
"task": "dress_as_a_petite_woman-0.textproto",
|
688 |
+
"index": "0",
|
689 |
+
"label": [
|
690 |
+
"Search for an essay to learn how to dress as a petite woman.",
|
691 |
+
"How can I dress as a petite woman?",
|
692 |
+
"How can a girl dress up to look petite?"
|
693 |
+
]
|
694 |
+
},
|
695 |
+
{
|
696 |
+
"id": 1155,
|
697 |
+
"text": "Search an article to learn how to dress for a broadway show.",
|
698 |
+
"task": "dress_for_a_broadway_show-8.textproto",
|
699 |
+
"index": "0",
|
700 |
+
"label": [
|
701 |
+
"Discover how to dress for a Broadway play.",
|
702 |
+
"Search a way to dress for a broadway show.",
|
703 |
+
"What is the best dressing for a Broadway show?"
|
704 |
+
]
|
705 |
+
},
|
706 |
+
{
|
707 |
+
"id": 1156,
|
708 |
+
"text": "Search an article to learn how to dress for a human resources job.",
|
709 |
+
"task": "dress_for_a_human_resources_job-0.textproto",
|
710 |
+
"index": "0",
|
711 |
+
"label": [
|
712 |
+
"When applying for a human resources job, what should I wear?",
|
713 |
+
"What is a proper dressing for a human resources position."
|
714 |
+
]
|
715 |
+
},
|
716 |
+
{
|
717 |
+
"id": 1157,
|
718 |
+
"text": "Search an article to learn how to dress to impress on a first date.",
|
719 |
+
"task": "dress_to_impress_on_a_first_date-8.textproto",
|
720 |
+
"index": "0",
|
721 |
+
"label": [
|
722 |
+
"How to dress on a first date to impress?",
|
723 |
+
"To better impress the other, what should I dress on the first date?",
|
724 |
+
"I'd like to learn an impressive dressing for the first date."
|
725 |
+
]
|
726 |
+
},
|
727 |
+
{
|
728 |
+
"id": 1158,
|
729 |
+
"text": "Search an article to learn how to drink eggnog.",
|
730 |
+
"task": "drink_eggnog-0.textproto",
|
731 |
+
"index": "0",
|
732 |
+
"label": [
|
733 |
+
"How to drink eggnog?",
|
734 |
+
"How to drink the eggnog?",
|
735 |
+
"Tell me the right way to enjoy eggnog."
|
736 |
+
]
|
737 |
+
},
|
738 |
+
{
|
739 |
+
"id": 1159,
|
740 |
+
"text": "Search an article to learn how to drink mezcal.",
|
741 |
+
"task": "drink_mezcal-7.textproto",
|
742 |
+
"index": "0",
|
743 |
+
"label": [
|
744 |
+
"Discover how to drink mezcal.",
|
745 |
+
"How to drink mezcal?",
|
746 |
+
"What's the right way to enjoy mescal?"
|
747 |
+
]
|
748 |
+
},
|
749 |
+
{
|
750 |
+
"id": 1160,
|
751 |
+
"text": "Search an article to learn how to enable regedit.",
|
752 |
+
"task": "enable_regedit-8.textproto",
|
753 |
+
"index": "0",
|
754 |
+
"label": [
|
755 |
+
"How to make regedit available?",
|
756 |
+
"How to open regedit on Windows.",
|
757 |
+
"Where can I open the regedit on Windows?",
|
758 |
+
"Where is the entrance of regedit on Windows?"
|
759 |
+
]
|
760 |
+
},
|
761 |
+
{
|
762 |
+
"id": 1161,
|
763 |
+
"text": "Search an article to learn how to enjoy vaping (e cigarettes).",
|
764 |
+
"task": "enjoy_vaping_P28e_cigarettesP29-4.textproto",
|
765 |
+
"index": "0",
|
766 |
+
"label": [
|
767 |
+
"Search for an article on how to enjoy e cigarettes.",
|
768 |
+
"How do I enjoy vaping, aka e cigarettes?",
|
769 |
+
"I'd like to try e cigarette.",
|
770 |
+
"I'd like to try vaping."
|
771 |
+
]
|
772 |
+
},
|
773 |
+
{
|
774 |
+
"id": 1162,
|
775 |
+
"text": "Search an article to learn how to es kms mean? texting, social media, & more.",
|
776 |
+
"task": "es_kms_meanP3F_texting_social_media_P26_more-6.textproto",
|
777 |
+
"index": "0",
|
778 |
+
"label": [
|
779 |
+
"What does \"es kms\" mean? texting, social media, & more.",
|
780 |
+
"How to es kms mean? texting social media, & more.",
|
781 |
+
"<invalid>"
|
782 |
+
]
|
783 |
+
},
|
784 |
+
{
|
785 |
+
"id": 1163,
|
786 |
+
"text": "Search an article to learn how to face paint a cat.",
|
787 |
+
"task": "face_paint_a_cat-8.textproto",
|
788 |
+
"index": "0",
|
789 |
+
"label": [
|
790 |
+
"To find out how to face-paint a cat, look up a guide online.",
|
791 |
+
"How to face paint a cat?",
|
792 |
+
"How do I make a cat face painting?"
|
793 |
+
]
|
794 |
+
},
|
795 |
+
{
|
796 |
+
"id": 1164,
|
797 |
+
"text": "Search an article to learn how to file your nails.",
|
798 |
+
"task": "file_your_nails-0.textproto",
|
799 |
+
"index": "0",
|
800 |
+
"label": [
|
801 |
+
"Look up how to polish the fingernails in an article.",
|
802 |
+
"How to file my nails?",
|
803 |
+
"I want to file my fingernails safely and beautifully."
|
804 |
+
]
|
805 |
+
},
|
806 |
+
{
|
807 |
+
"id": 1165,
|
808 |
+
"text": "Search an article to learn how to find a person with an unlisted phone number.",
|
809 |
+
"task": "find_a_person_with_an_unlisted_phone_number-7.textproto",
|
810 |
+
"index": "0",
|
811 |
+
"label": [
|
812 |
+
"How to locate someone with an unlisted phone number?",
|
813 |
+
"If someone's phone number is not listed, how can I find him or her?",
|
814 |
+
"How can we find a person without knowing his phone number?"
|
815 |
+
]
|
816 |
+
},
|
817 |
+
{
|
818 |
+
"id": 1166,
|
819 |
+
"text": "Search an article to learn how to find out if your license is suspended (usa).",
|
820 |
+
"task": "find_out_if_your_license_is_suspended_P28usaP29-8.textproto",
|
821 |
+
"index": "0",
|
822 |
+
"label": [
|
823 |
+
"How to find out if your license is suspended in the United States?",
|
824 |
+
"What should I do to find if my usa license is suspended?",
|
825 |
+
"How can I check the suspension status of my license?",
|
826 |
+
"How can I check whether my license is under suspension?"
|
827 |
+
]
|
828 |
+
},
|
829 |
+
{
|
830 |
+
"id": 1167,
|
831 |
+
"text": "Search an article to learn how to find out who your real friends are.",
|
832 |
+
"task": "find_out_who_your_real_friends_are-8.textproto",
|
833 |
+
"index": "0",
|
834 |
+
"label": [
|
835 |
+
"How to identify your true buddies?",
|
836 |
+
"How to find out the real friends of mine?",
|
837 |
+
"How can I recognize my real friends?"
|
838 |
+
]
|
839 |
+
},
|
840 |
+
{
|
841 |
+
"id": 1168,
|
842 |
+
"text": "Search an article to learn how to fish for alligator gar.",
|
843 |
+
"task": "fish_for_alligator_gar-7.textproto",
|
844 |
+
"index": "0",
|
845 |
+
"label": [
|
846 |
+
"Learn how to catch alligator gar by fishing.",
|
847 |
+
"How does a fisherman fish for alligator gar?",
|
848 |
+
"I wonder how I can catch an alligator gar."
|
849 |
+
]
|
850 |
+
},
|
851 |
+
{
|
852 |
+
"id": 1169,
|
853 |
+
"text": "Search an article to learn how to fix a front load washer so that it does not smell with washer fan.",
|
854 |
+
"task": "fix_a_front_load_washer_so_that_it_does_not_smell_with_washer_fan-4.textproto",
|
855 |
+
"index": "0",
|
856 |
+
"label": [
|
857 |
+
"Learn how to repair a front-load washer so it doesn't stink with the washing fan.",
|
858 |
+
"A front load washer smells with washer fan, so how could I fix it?",
|
859 |
+
"I'm seeking a solution for the smell from the washer fan.",
|
860 |
+
"Is there a way to fix the washer to eliminate the smell from the fan?"
|
861 |
+
]
|
862 |
+
},
|
863 |
+
{
|
864 |
+
"id": 1170,
|
865 |
+
"text": "Search an article to learn how to fix wet suede shoes.",
|
866 |
+
"task": "fix_wet_suede_shoes-6.textproto",
|
867 |
+
"index": "0",
|
868 |
+
"label": [
|
869 |
+
"How can I fix the wet suede shoes?",
|
870 |
+
"Is there any means to fix wet suede shoes.",
|
871 |
+
"How can I repair my suede shoes stained by water.",
|
872 |
+
"How can I repair my water-stained suede shoes.",
|
873 |
+
"I have suede shoes which are stained by water and want to repair it."
|
874 |
+
]
|
875 |
+
},
|
876 |
+
{
|
877 |
+
"id": 1171,
|
878 |
+
"text": "Search an article to learn how to freeze buttermilk.",
|
879 |
+
"task": "freeze_buttermilk-7.textproto",
|
880 |
+
"index": "0",
|
881 |
+
"label": [
|
882 |
+
"How to freeze buttermilk?",
|
883 |
+
"How can I freeze and store the leftover buttermilk?"
|
884 |
+
]
|
885 |
+
},
|
886 |
+
{
|
887 |
+
"id": 1172,
|
888 |
+
"text": "Search an article to learn how to furnish a room for 350 dollars or less.",
|
889 |
+
"task": "furnish_a_room_for_350_dollars_or_less-0.textproto",
|
890 |
+
"index": "0",
|
891 |
+
"label": [
|
892 |
+
"Learn how to furnish a room for 350 dollars or less.",
|
893 |
+
"With 350 dollars or less, how to furnish a room?",
|
894 |
+
"How can I furnish a room within a budget no more than 350 dollars?",
|
895 |
+
"I've got a room to furnish but only 350 dollars to spend."
|
896 |
+
]
|
897 |
+
},
|
898 |
+
{
|
899 |
+
"id": 1173,
|
900 |
+
"text": "Search an article to learn how to get a girl to call you back.",
|
901 |
+
"task": "get_a_girl_to_call_you_back-8.textproto",
|
902 |
+
"index": "0",
|
903 |
+
"label": [
|
904 |
+
"What should I do to let a girl call me back?",
|
905 |
+
"I've met a pretty girl and what can I do so that she will call me back?"
|
906 |
+
]
|
907 |
+
},
|
908 |
+
{
|
909 |
+
"id": 1174,
|
910 |
+
"text": "Search an article to learn how to get a girlfriend as a teen.",
|
911 |
+
"task": "get_a_girlfriend_as_a_teen-7.textproto",
|
912 |
+
"index": "0",
|
913 |
+
"label": [
|
914 |
+
"How to attract a girlfriend while you're a teen?",
|
915 |
+
"How could I get my girlfriend as a teen?",
|
916 |
+
"How can a teenager find a girlfriend?"
|
917 |
+
]
|
918 |
+
},
|
919 |
+
{
|
920 |
+
"id": 1175,
|
921 |
+
"text": "Search an article to learn how to get a loan without private mortgage insurance (pmi).",
|
922 |
+
"task": "get_a_loan_without_private_mortgage_insurance_P28pmiP29-8.textproto",
|
923 |
+
"index": "0",
|
924 |
+
"label": [
|
925 |
+
"How to obtain a loan without requiring private mortgage insurance?",
|
926 |
+
"If I do not have private mortgage insurance (pmi), how can I get a loan?",
|
927 |
+
"I want to obtain a loan but have no ability to afford excessive PMI.",
|
928 |
+
"Is there any way to prevent PMI while applying for a loan?"
|
929 |
+
]
|
930 |
+
},
|
931 |
+
{
|
932 |
+
"id": 1176,
|
933 |
+
"text": "Search an article to learn how to get fit in two weeks (middle school girls).",
|
934 |
+
"task": "get_fit_in_two_weeks_P28middle_school_girlsP29-7.textproto",
|
935 |
+
"index": "0",
|
936 |
+
"label": [
|
937 |
+
"How can a middle school girl get in shape in two weeks.",
|
938 |
+
"For middle school girls, how to get fit in 2 weeks?",
|
939 |
+
"Is there any way for a middle school girl to get in shape in two weeks?"
|
940 |
+
]
|
941 |
+
},
|
942 |
+
{
|
943 |
+
"id": 1177,
|
944 |
+
"text": "Search an article to learn how to get girls.",
|
945 |
+
"task": "get_girls-6.textproto",
|
946 |
+
"index": "0",
|
947 |
+
"label": [
|
948 |
+
"Learn how to attract girls.",
|
949 |
+
"Search for a way to get girls.",
|
950 |
+
"I'm seeking a method for me to find a girlfriend."
|
951 |
+
]
|
952 |
+
},
|
953 |
+
{
|
954 |
+
"id": 1178,
|
955 |
+
"text": "Search an article to learn how to get into berghain.",
|
956 |
+
"task": "get_into_berghain-4.textproto",
|
957 |
+
"index": "0",
|
958 |
+
"label": [
|
959 |
+
"Find an article about how to enter into Berghain.",
|
960 |
+
"What is the correct way to get into berghain?",
|
961 |
+
"How can I attend Berghain?",
|
962 |
+
"Is there anyway to enter the Berghain?"
|
963 |
+
]
|
964 |
+
},
|
965 |
+
{
|
966 |
+
"id": 1179,
|
967 |
+
"text": "Search an article to learn how to get music on the kindle.",
|
968 |
+
"task": "get_music_on_the_kindle-0.textproto",
|
969 |
+
"index": "0",
|
970 |
+
"label": [
|
971 |
+
"Learn how to get music on my kindle.",
|
972 |
+
"How do I copy or download music on the kindle?",
|
973 |
+
"How can I play music using a kindle?",
|
974 |
+
"I want to download musics on my kindle."
|
975 |
+
]
|
976 |
+
},
|
977 |
+
{
|
978 |
+
"id": 1180,
|
979 |
+
"text": "Search an article to learn how to get over rejection.",
|
980 |
+
"task": "get_over_rejection-0.textproto",
|
981 |
+
"index": "0",
|
982 |
+
"label": [
|
983 |
+
"How to overcome over rejection",
|
984 |
+
"How to go through rejection.",
|
985 |
+
"Tell me how to recover from a rejection."
|
986 |
+
]
|
987 |
+
},
|
988 |
+
{
|
989 |
+
"id": 1181,
|
990 |
+
"text": "Search an article to learn how to get rid of a dog's whipworms.",
|
991 |
+
"task": "get_rid_of_a_dogP27s_whipworms-8.textproto",
|
992 |
+
"index": "0",
|
993 |
+
"label": [
|
994 |
+
"Is there any way to get rid of whipworms in dogs?",
|
995 |
+
"How do I clean a dog's whipworms?",
|
996 |
+
"What should we do to treat the whipworm for a dog?"
|
997 |
+
]
|
998 |
+
},
|
999 |
+
{
|
1000 |
+
"id": 1182,
|
1001 |
+
"text": "Search an article to learn how to get rid of a stingray's sting.",
|
1002 |
+
"task": "get_rid_of_a_stingrayP27s_sting-8.textproto",
|
1003 |
+
"index": "0",
|
1004 |
+
"label": [
|
1005 |
+
"Discover how to remove the sting of a stingray.",
|
1006 |
+
"How to get rid of a stingray's sting?",
|
1007 |
+
"How should we treat a stingray's sting?"
|
1008 |
+
]
|
1009 |
+
},
|
1010 |
+
{
|
1011 |
+
"id": 1183,
|
1012 |
+
"text": "Search an article to learn how to get rid of ringworm scars.",
|
1013 |
+
"task": "get_rid_of_ringworm_scars-7.textproto",
|
1014 |
+
"index": "0",
|
1015 |
+
"label": [
|
1016 |
+
"How to remove ringworm scars?",
|
1017 |
+
"Is there a way to get rid of ringworm scars?",
|
1018 |
+
"Is there anyway to treat the scars caused by the ringworm?"
|
1019 |
+
]
|
1020 |
+
},
|
1021 |
+
{
|
1022 |
+
"id": 1184,
|
1023 |
+
"text": "Search an article to learn how to get work done while sick.",
|
1024 |
+
"task": "get_work_done_while_sick-0.textproto",
|
1025 |
+
"index": "0",
|
1026 |
+
"label": [
|
1027 |
+
"How to work while I'm sick?",
|
1028 |
+
"When I am sick, how to get my work perfectly done?",
|
1029 |
+
"What can I do to complete my work in sick?"
|
1030 |
+
]
|
1031 |
+
},
|
1032 |
+
{
|
1033 |
+
"id": 1185,
|
1034 |
+
"text": "Search an article to learn how to get zorua in pokémon white.",
|
1035 |
+
"task": "get_zorua_in_pokPC3PA9mon_white-6.textproto",
|
1036 |
+
"index": "0",
|
1037 |
+
"label": [
|
1038 |
+
"In Pokémon White, how can you obtain Zorua?",
|
1039 |
+
"How can I get zorua in pokémon white?",
|
1040 |
+
"Where can I obtain Zorua in Pokémon White?"
|
1041 |
+
]
|
1042 |
+
},
|
1043 |
+
{
|
1044 |
+
"id": 1186,
|
1045 |
+
"text": "Search an article to learn how to grill scallops.",
|
1046 |
+
"task": "grill_scallops-4.textproto",
|
1047 |
+
"index": "0",
|
1048 |
+
"label": [
|
1049 |
+
"Discover how to cook scallops.",
|
1050 |
+
"How to grill scallops?",
|
1051 |
+
"How can we bake scallops?",
|
1052 |
+
"What's the best way to barbecue scallops?"
|
1053 |
+
]
|
1054 |
+
},
|
1055 |
+
{
|
1056 |
+
"id": 1187,
|
1057 |
+
"text": "Search an article to learn how to grow finger limes.",
|
1058 |
+
"task": "grow_finger_limes-6.textproto",
|
1059 |
+
"index": "0",
|
1060 |
+
"label": [
|
1061 |
+
"Find an article about how to cultivate finger limes.",
|
1062 |
+
"What should I do to grow finger limes?",
|
1063 |
+
"How can we plant finger limes at home?"
|
1064 |
+
]
|
1065 |
+
},
|
1066 |
+
{
|
1067 |
+
"id": 1188,
|
1068 |
+
"text": "Search an article to learn how to handle a psychiatric emergency.",
|
1069 |
+
"task": "handle_a_psychiatric_emergency-0.textproto",
|
1070 |
+
"index": "0",
|
1071 |
+
"label": [
|
1072 |
+
"Find an article on how to deal with a psychiatric emergency.",
|
1073 |
+
"When there is a psychiatric emergency, how to handle it?",
|
1074 |
+
"Tell me what is in need to help apsychiatric patient in emergency.",
|
1075 |
+
"What can we do to help a psychiatric patient in emergency?"
|
1076 |
+
]
|
1077 |
+
},
|
1078 |
+
{
|
1079 |
+
"id": 1189,
|
1080 |
+
"text": "Search an article to learn how to handle yourself after a motorcycle accident.",
|
1081 |
+
"task": "handle_yourself_after_a_motorcycle_accident-8.textproto",
|
1082 |
+
"index": "0",
|
1083 |
+
"label": [
|
1084 |
+
"What can I do after a motorcycle accident?",
|
1085 |
+
"If I was involved into a motorcycle accident, what could I do to save myself?",
|
1086 |
+
"How should I care for myself after a motorbike accident?"
|
1087 |
+
]
|
1088 |
+
},
|
1089 |
+
{
|
1090 |
+
"id": 1190,
|
1091 |
+
"text": "Search an article to learn how to hide gauges.",
|
1092 |
+
"task": "hide_gauges-8.textproto",
|
1093 |
+
"index": "0",
|
1094 |
+
"label": [
|
1095 |
+
"Look up how to conceal gauges.",
|
1096 |
+
"Is there a way to hide gauges?",
|
1097 |
+
"How can I hide my ear gauges?",
|
1098 |
+
"How can I hide my ear spacers?"
|
1099 |
+
]
|
1100 |
+
},
|
1101 |
+
{
|
1102 |
+
"id": 1191,
|
1103 |
+
"text": "Search an article to learn how to hide short bangs.",
|
1104 |
+
"task": "hide_short_bangs-7.textproto",
|
1105 |
+
"index": "0",
|
1106 |
+
"label": [
|
1107 |
+
"Find out how to conceal small bangs.",
|
1108 |
+
"How to hide short bangs?",
|
1109 |
+
"I want to obscure my short bangs for a new style."
|
1110 |
+
]
|
1111 |
+
},
|
1112 |
+
{
|
1113 |
+
"id": 1192,
|
1114 |
+
"text": "Search an article to learn how to hide smoke smell indoors.",
|
1115 |
+
"task": "hide_smoke_smell_indoors-0.textproto",
|
1116 |
+
"index": "0",
|
1117 |
+
"label": [
|
1118 |
+
"How to conceal a smoking odor indoors?",
|
1119 |
+
"Is there a way to hide smoke smell indoors?",
|
1120 |
+
"Teach me some methods to obscure the smoking smell in the room."
|
1121 |
+
]
|
1122 |
+
},
|
1123 |
+
{
|
1124 |
+
"id": 1193,
|
1125 |
+
"text": "Search an article to learn how to hold a harmonica.",
|
1126 |
+
"task": "hold_a_harmonica-7.textproto",
|
1127 |
+
"index": "0",
|
1128 |
+
"label": [
|
1129 |
+
"How to play the harmonica?",
|
1130 |
+
"How to hold a harmonica?",
|
1131 |
+
"Teach me how to hold the harmonica in hand as a master.",
|
1132 |
+
"Teach me the gesture while playing the harmonica."
|
1133 |
+
]
|
1134 |
+
},
|
1135 |
+
{
|
1136 |
+
"id": 1194,
|
1137 |
+
"text": "Search an article to learn how to identify a mouse spider.",
|
1138 |
+
"task": "identify_a_mouse_spider-8.textproto",
|
1139 |
+
"index": "0",
|
1140 |
+
"label": [
|
1141 |
+
"How can I decide if it is a mouse spider?",
|
1142 |
+
"I need to learn to recognize the mouse spider from the similar spiders."
|
1143 |
+
]
|
1144 |
+
},
|
1145 |
+
{
|
1146 |
+
"id": 1195,
|
1147 |
+
"text": "Search an article to learn how to identify hickory nuts.",
|
1148 |
+
"task": "identify_hickory_nuts-6.textproto",
|
1149 |
+
"index": "0",
|
1150 |
+
"label": [
|
1151 |
+
"Reveal how to recognize hickory nuts.",
|
1152 |
+
"How to decide if the nuts are hickory nuts?",
|
1153 |
+
"How can I distinguish hickory nuts from other species?",
|
1154 |
+
"How can I recognize hickory nuts?"
|
1155 |
+
]
|
1156 |
+
},
|
1157 |
+
{
|
1158 |
+
"id": 1196,
|
1159 |
+
"text": "Search an article to learn how to improve your vo2 max.",
|
1160 |
+
"task": "improve_your_vo2_max-7.textproto",
|
1161 |
+
"index": "0",
|
1162 |
+
"label": [
|
1163 |
+
"Look for an article on how to increase your VO2 max.",
|
1164 |
+
"What can I do to improve my vo2 max?",
|
1165 |
+
"How do people exercise to boost their VO2 max?"
|
1166 |
+
]
|
1167 |
+
},
|
1168 |
+
{
|
1169 |
+
"id": 1197,
|
1170 |
+
"text": "Search an article to learn how to increase your general knowledge.",
|
1171 |
+
"task": "increase_your_general_knowledge-4.textproto",
|
1172 |
+
"index": "0",
|
1173 |
+
"label": [
|
1174 |
+
"How to become more common sense?",
|
1175 |
+
"To increase my general knowledge, what should I do?",
|
1176 |
+
"I want to extend my common-sense knowledge."
|
1177 |
+
]
|
1178 |
+
},
|
1179 |
+
{
|
1180 |
+
"id": 1198,
|
1181 |
+
"text": "Search an article to learn how to install a coolant flush kit.",
|
1182 |
+
"task": "install_a_coolant_flush_kit-8.textproto",
|
1183 |
+
"index": "0",
|
1184 |
+
"label": [
|
1185 |
+
"How to set up a kit for flushing coolant?",
|
1186 |
+
"How do I install a coolant flush kit?",
|
1187 |
+
"How can I flush and refill the coolant using the kit?"
|
1188 |
+
]
|
1189 |
+
},
|
1190 |
+
{
|
1191 |
+
"id": 1199,
|
1192 |
+
"text": "Search an article to learn how to introduce science to preschoolers.",
|
1193 |
+
"task": "introduce_science_to_preschoolers-0.textproto",
|
1194 |
+
"index": "0",
|
1195 |
+
"label": [
|
1196 |
+
"How to Teach Preschoolers Science?",
|
1197 |
+
"As a teacher, how do I teach science to preschoolers?",
|
1198 |
+
"What's the best way of the introduction of science to preschool children?"
|
1199 |
+
]
|
1200 |
+
},
|
1201 |
+
{
|
1202 |
+
"id": 1200,
|
1203 |
+
"text": "Search an article to learn how to join a christian church.",
|
1204 |
+
"task": "join_a_christian_church-4.textproto",
|
1205 |
+
"index": "0",
|
1206 |
+
"label": [
|
1207 |
+
"Find out how to join a church.",
|
1208 |
+
"What should one do if he or she want to join a christian church?",
|
1209 |
+
"How can a Christian find and choose a church."
|
1210 |
+
]
|
1211 |
+
},
|
1212 |
+
{
|
1213 |
+
"id": 1201,
|
1214 |
+
"text": "Search an article to learn how to keep spiders out of your gardening boots.",
|
1215 |
+
"task": "keep_spiders_out_of_your_gardening_boots-7.textproto",
|
1216 |
+
"index": "0",
|
1217 |
+
"label": [
|
1218 |
+
"Look for an article on how to keep spiders out of your gardening boots.",
|
1219 |
+
"Is there any means to keep spiders out of my gardening boots?",
|
1220 |
+
"I'm seeking a method to prevent spiders from entering the gardening boots."
|
1221 |
+
]
|
1222 |
+
},
|
1223 |
+
{
|
1224 |
+
"id": 1202,
|
1225 |
+
"text": "Search an article to learn how to keep sports bra pads in place.",
|
1226 |
+
"task": "keep_sports_bra_pads_in_place-8.textproto",
|
1227 |
+
"index": "0",
|
1228 |
+
"label": [
|
1229 |
+
"How to keep sports bra pads secure?",
|
1230 |
+
"As for sports bra pads, how to keep them in place?",
|
1231 |
+
"Tell me a method to prevent the pad of sports bra from shifting away."
|
1232 |
+
]
|
1233 |
+
},
|
1234 |
+
{
|
1235 |
+
"id": 1203,
|
1236 |
+
"text": "Search an article to learn how to kill brown recluse spiders.",
|
1237 |
+
"task": "kill_brown_recluse_spiders-8.textproto",
|
1238 |
+
"index": "0",
|
1239 |
+
"label": [
|
1240 |
+
"How are brown recluse spiders killed?",
|
1241 |
+
"How do I kill brown recluse spiders?",
|
1242 |
+
"Give me some idea to safely destroy a brown recluse spider."
|
1243 |
+
]
|
1244 |
+
},
|
1245 |
+
{
|
1246 |
+
"id": 1204,
|
1247 |
+
"text": "Search an article to learn how to learn chinese fast.",
|
1248 |
+
"task": "learn_chinese_fast-4.textproto",
|
1249 |
+
"index": "0",
|
1250 |
+
"label": [
|
1251 |
+
"Discover how to learn Chinese quickly.",
|
1252 |
+
"How to learn chinese in a smarter way?",
|
1253 |
+
"How can I grasp Chinese in short time?",
|
1254 |
+
"I want to learn Chinese quickly."
|
1255 |
+
]
|
1256 |
+
},
|
1257 |
+
{
|
1258 |
+
"id": 1205,
|
1259 |
+
"text": "Search an article to learn how to lessen the effects of alcohol.",
|
1260 |
+
"task": "lessen_the_effects_of_alcohol-7.textproto",
|
1261 |
+
"index": "0",
|
1262 |
+
"label": [
|
1263 |
+
"Look for an article on how to reduce the effects of alcohol.",
|
1264 |
+
"If I was drunk, how to lessen the effects of alcohol?",
|
1265 |
+
"Tell me some method to ameliorate the affects after drinking."
|
1266 |
+
]
|
1267 |
+
},
|
1268 |
+
{
|
1269 |
+
"id": 1206,
|
1270 |
+
"text": "Search an article to learn how to level an existing house.",
|
1271 |
+
"task": "level_an_existing_house-4.textproto",
|
1272 |
+
"index": "0",
|
1273 |
+
"label": [
|
1274 |
+
"How to level an existing house?",
|
1275 |
+
"What to do to level an existing house?",
|
1276 |
+
"The floor of my old house has sank a little and I'd like to learn the way to re-level it."
|
1277 |
+
]
|
1278 |
+
},
|
1279 |
+
{
|
1280 |
+
"id": 1207,
|
1281 |
+
"text": "Search an article to learn how to light a pilot light.",
|
1282 |
+
"task": "light_a_pilot_light-4.textproto",
|
1283 |
+
"index": "0",
|
1284 |
+
"label": [
|
1285 |
+
"Search an article to learn steps for starting a pilot light.",
|
1286 |
+
"How to light a pilot light?",
|
1287 |
+
"What should I do to ignite the pilot light?"
|
1288 |
+
]
|
1289 |
+
},
|
1290 |
+
{
|
1291 |
+
"id": 1208,
|
1292 |
+
"text": "Search an article to learn how to look sleepy.",
|
1293 |
+
"task": "look_sleepy-8.textproto",
|
1294 |
+
"index": "0",
|
1295 |
+
"label": [
|
1296 |
+
"How to appear drowsy?",
|
1297 |
+
"How could I look sleepy to others?",
|
1298 |
+
"How can I act sleepy?",
|
1299 |
+
"I'd like to know how to pretend to be sleepy.",
|
1300 |
+
"Is there a good way to make myself look sleepy?"
|
1301 |
+
]
|
1302 |
+
},
|
1303 |
+
{
|
1304 |
+
"id": 1209,
|
1305 |
+
"text": "Search an article to learn how to lower child support.",
|
1306 |
+
"task": "lower_child_support-7.textproto",
|
1307 |
+
"index": "0",
|
1308 |
+
"label": [
|
1309 |
+
"I there any way to reduce child support?",
|
1310 |
+
"How to lower child support?",
|
1311 |
+
"Is there a way for me to spend less child support?"
|
1312 |
+
]
|
1313 |
+
},
|
1314 |
+
{
|
1315 |
+
"id": 1210,
|
1316 |
+
"text": "Search an article to learn how to make a dream board.",
|
1317 |
+
"task": "make_a_dream_board-0.textproto",
|
1318 |
+
"index": "0",
|
1319 |
+
"label": [
|
1320 |
+
"Look for an article on how to construct a dream board.",
|
1321 |
+
"How to make a dream board?",
|
1322 |
+
"How do people create a dream board?",
|
1323 |
+
"How do people make a vision board?"
|
1324 |
+
]
|
1325 |
+
},
|
1326 |
+
{
|
1327 |
+
"id": 1211,
|
1328 |
+
"text": "Search an article to learn how to make a lei.",
|
1329 |
+
"task": "make_a_lei-4.textproto",
|
1330 |
+
"index": "0",
|
1331 |
+
"label": [
|
1332 |
+
"Discover how to make a lei.",
|
1333 |
+
"How to make a lei?",
|
1334 |
+
"I want to learn to make a Hawaiian lei by myself."
|
1335 |
+
]
|
1336 |
+
},
|
1337 |
+
{
|
1338 |
+
"id": 1212,
|
1339 |
+
"text": "Search an article to learn how to make an electroscope.",
|
1340 |
+
"task": "make_an_electroscope-8.textproto",
|
1341 |
+
"index": "0",
|
1342 |
+
"label": [
|
1343 |
+
"How to construct an electroscope?",
|
1344 |
+
"Search for a way to make an electroscope.",
|
1345 |
+
"Can we home make a simple electroscope?"
|
1346 |
+
]
|
1347 |
+
},
|
1348 |
+
{
|
1349 |
+
"id": 1213,
|
1350 |
+
"text": "Search an article to learn how to make an octagon.",
|
1351 |
+
"task": "make_an_octagon-8.textproto",
|
1352 |
+
"index": "0",
|
1353 |
+
"label": [
|
1354 |
+
"Look up an article about how to construct an octagon.",
|
1355 |
+
"What should I do to make an octagon?",
|
1356 |
+
"How can I draw an octagon by myself?"
|
1357 |
+
]
|
1358 |
+
},
|
1359 |
+
{
|
1360 |
+
"id": 1214,
|
1361 |
+
"text": "Search an article to learn how to make deep fried kit kat.",
|
1362 |
+
"task": "make_deep_fried_kit_kat-0.textproto",
|
1363 |
+
"index": "0",
|
1364 |
+
"label": [
|
1365 |
+
"Look up how to create deep-fried kit kat in an article.",
|
1366 |
+
"What should I do to make deep fried kit kat?",
|
1367 |
+
"Can kit kat be cooked deep fried?",
|
1368 |
+
"How do we cook deep fried kit kat?"
|
1369 |
+
]
|
1370 |
+
},
|
1371 |
+
{
|
1372 |
+
"id": 1215,
|
1373 |
+
"text": "Search an article to learn how to make flip flops from a yoga mat.",
|
1374 |
+
"task": "make_flip_flops_from_a_yoga_mat-8.textproto",
|
1375 |
+
"index": "0",
|
1376 |
+
"label": [
|
1377 |
+
"How to use a yoga mat as a flip-flop?",
|
1378 |
+
"With a yoga mat, how can I make flip flops?",
|
1379 |
+
"Can we make flip flops from a rubber or latex yoga mat at home?"
|
1380 |
+
]
|
1381 |
+
},
|
1382 |
+
{
|
1383 |
+
"id": 1216,
|
1384 |
+
"text": "Search an article to learn how to make kakashi hair.",
|
1385 |
+
"task": "make_kakashi_hair-8.textproto",
|
1386 |
+
"index": "0",
|
1387 |
+
"label": [
|
1388 |
+
"Teach me some methods to make kakashi hair.",
|
1389 |
+
"What are the steps to get a kakashi style hair?",
|
1390 |
+
"I want to try a hair style like Kakashi."
|
1391 |
+
]
|
1392 |
+
},
|
1393 |
+
{
|
1394 |
+
"id": 1217,
|
1395 |
+
"text": "Search an article to learn how to make letters of the english alphabet.",
|
1396 |
+
"task": "make_letters_of_the_english_alphabet-7.textproto",
|
1397 |
+
"index": "0",
|
1398 |
+
"label": [
|
1399 |
+
"How to produce English alphabet letters?",
|
1400 |
+
"Search a way to make letters of the english alphabet.",
|
1401 |
+
"I'd like to learn to hand write english letters."
|
1402 |
+
]
|
1403 |
+
},
|
1404 |
+
{
|
1405 |
+
"id": 1218,
|
1406 |
+
"text": "Search an article to learn how to make liquid foundation.",
|
1407 |
+
"task": "make_liquid_foundation-7.textproto",
|
1408 |
+
"index": "0",
|
1409 |
+
"label": [
|
1410 |
+
"I want to study the creation of liquid foundation.",
|
1411 |
+
"Search for a way to make liquid foundation.",
|
1412 |
+
"I want to learn to make my own liquid foundation at home."
|
1413 |
+
]
|
1414 |
+
},
|
1415 |
+
{
|
1416 |
+
"id": 1219,
|
1417 |
+
"text": "Search an article to learn how to make money on twitter with revue newsletters.",
|
1418 |
+
"task": "make_money_on_twitter_with_revue_newsletters-0.textproto",
|
1419 |
+
"index": "0",
|
1420 |
+
"label": [
|
1421 |
+
"Learn how to use revue newsletters to make money on Twitter.",
|
1422 |
+
"How do I earn money with revue newsletters on twitter?",
|
1423 |
+
"I want to know how to earn mony on Twitter by Revue newsletters."
|
1424 |
+
]
|
1425 |
+
},
|
1426 |
+
{
|
1427 |
+
"id": 1220,
|
1428 |
+
"text": "Search an article to learn how to manage conflict.",
|
1429 |
+
"task": "manage_conflict-4.textproto",
|
1430 |
+
"index": "0",
|
1431 |
+
"label": [
|
1432 |
+
"How to deal with disagreement?",
|
1433 |
+
"How to better manage conflict?",
|
1434 |
+
"Give me some idea to solve the conflicts finely in the group."
|
1435 |
+
]
|
1436 |
+
},
|
1437 |
+
{
|
1438 |
+
"id": 1221,
|
1439 |
+
"text": "Search an article to learn how to map your walk at mapmywalk.",
|
1440 |
+
"task": "map_your_walk_at_mapmywalk-8.textproto",
|
1441 |
+
"index": "0",
|
1442 |
+
"label": [
|
1443 |
+
"How to map your stroll with mapmywalk.com?",
|
1444 |
+
"How to use mapmywalk to map my walk?",
|
1445 |
+
"I want to try to upload and check my hike on MapMyWalk."
|
1446 |
+
]
|
1447 |
+
},
|
1448 |
+
{
|
1449 |
+
"id": 1222,
|
1450 |
+
"text": "Search an article to learn how to measure a necklace.",
|
1451 |
+
"task": "measure_a_necklace-6.textproto",
|
1452 |
+
"index": "0",
|
1453 |
+
"label": [
|
1454 |
+
"How to take a necklace measurement?",
|
1455 |
+
"How to measure a necklace?",
|
1456 |
+
"How can I determine the proper length for a necklace?"
|
1457 |
+
]
|
1458 |
+
},
|
1459 |
+
{
|
1460 |
+
"id": 1223,
|
1461 |
+
"text": "Search an article to learn how to meet christian girls.",
|
1462 |
+
"task": "meet_christian_girls-4.textproto",
|
1463 |
+
"index": "0",
|
1464 |
+
"label": [
|
1465 |
+
"Find how to meet Christian females.",
|
1466 |
+
"If I want to get close to chstian girls, what should I do?",
|
1467 |
+
"I want to find a Christian as girlfriend."
|
1468 |
+
]
|
1469 |
+
},
|
1470 |
+
{
|
1471 |
+
"id": 1224,
|
1472 |
+
"text": "Search an article to learn how to not get pregnant.",
|
1473 |
+
"task": "not_get_pregnant-7.textproto",
|
1474 |
+
"index": "0",
|
1475 |
+
"label": [
|
1476 |
+
"How to avoid pregnancy?",
|
1477 |
+
"What if I do not want to get pregnant?",
|
1478 |
+
"How can we perform contraception?",
|
1479 |
+
"How can we prevent pregnancy after sexing?"
|
1480 |
+
]
|
1481 |
+
},
|
1482 |
+
{
|
1483 |
+
"id": 1225,
|
1484 |
+
"text": "Search an article to learn how to open file manager on android.",
|
1485 |
+
"task": "open_file_manager_on_android-8.textproto",
|
1486 |
+
"index": "0",
|
1487 |
+
"label": [
|
1488 |
+
"How to access the Android file manager?",
|
1489 |
+
"What should I do to open the file manager if I am using android?",
|
1490 |
+
"How can I open the Android file manager?",
|
1491 |
+
"How do I manage the files on Android?"
|
1492 |
+
]
|
1493 |
+
},
|
1494 |
+
{
|
1495 |
+
"id": 1226,
|
1496 |
+
"text": "Search an article to learn how to open oysters.",
|
1497 |
+
"task": "open_oysters-7.textproto",
|
1498 |
+
"index": "0",
|
1499 |
+
"label": [
|
1500 |
+
"Discover how to open oysters.",
|
1501 |
+
"How can I open an oyster?",
|
1502 |
+
"I want to find a good way to open the shell of oysters."
|
1503 |
+
]
|
1504 |
+
},
|
1505 |
+
{
|
1506 |
+
"id": 1227,
|
1507 |
+
"text": "Search an article to learn how to organize your yarn.",
|
1508 |
+
"task": "organize_your_yarn-0.textproto",
|
1509 |
+
"index": "0",
|
1510 |
+
"label": [
|
1511 |
+
"Find out how to arrange your yarn.",
|
1512 |
+
"How to organize my yarn?",
|
1513 |
+
"I'm seeking a better way to hold the yarn."
|
1514 |
+
]
|
1515 |
+
},
|
1516 |
+
{
|
1517 |
+
"id": 1228,
|
1518 |
+
"text": "Search an article to learn how to paint galvanized steel.",
|
1519 |
+
"task": "paint_galvanized_steel-8.textproto",
|
1520 |
+
"index": "0",
|
1521 |
+
"label": [
|
1522 |
+
"Discover how to paint galvanized steel.",
|
1523 |
+
"What is the correct way to paint galvanized steel?",
|
1524 |
+
"Teach me a method to paint on zinc-coated steel."
|
1525 |
+
]
|
1526 |
+
},
|
1527 |
+
{
|
1528 |
+
"id": 1229,
|
1529 |
+
"text": "Search an article to learn how to peel eggplant.",
|
1530 |
+
"task": "peel_eggplant-8.textproto",
|
1531 |
+
"index": "0",
|
1532 |
+
"label": [
|
1533 |
+
"Learn how to peel eggplant.",
|
1534 |
+
"How do I peel eggplant?",
|
1535 |
+
"I want to learn some new method to remove the skin of aubergines gracefully."
|
1536 |
+
]
|
1537 |
+
},
|
1538 |
+
{
|
1539 |
+
"id": 1230,
|
1540 |
+
"text": "Search an article to learn how to perform a bean seed dissection experiment.",
|
1541 |
+
"task": "perform_a_bean_seed_dissection_experiment-0.textproto",
|
1542 |
+
"index": "0",
|
1543 |
+
"label": [
|
1544 |
+
"How may a bean seed experiment be carried out?",
|
1545 |
+
"What is the whole process of performing a bean seed dissection experiment?",
|
1546 |
+
"How should I conduct an anatomy experiment with the bean seeds?"
|
1547 |
+
]
|
1548 |
+
},
|
1549 |
+
{
|
1550 |
+
"id": 1231,
|
1551 |
+
"text": "Search an article to learn how to pipe frosting neatly.",
|
1552 |
+
"task": "pipe_frosting_neatly-0.textproto",
|
1553 |
+
"index": "0",
|
1554 |
+
"label": [
|
1555 |
+
"How to correctly pipe frosting?",
|
1556 |
+
"How to neatly pipe frosting?",
|
1557 |
+
"How can we pipe icing at home?",
|
1558 |
+
"I want to learn to pipe icing by myself."
|
1559 |
+
]
|
1560 |
+
},
|
1561 |
+
{
|
1562 |
+
"id": 1232,
|
1563 |
+
"text": "Search an article to learn how to plant grass plugs.",
|
1564 |
+
"task": "plant_grass_plugs-7.textproto",
|
1565 |
+
"index": "0",
|
1566 |
+
"label": [
|
1567 |
+
"How to grow grass plugs?",
|
1568 |
+
"Search a tutorial for planting grass plugs.",
|
1569 |
+
"How should I grow grass plugs in my yard?"
|
1570 |
+
]
|
1571 |
+
},
|
1572 |
+
{
|
1573 |
+
"id": 1233,
|
1574 |
+
"text": "Search an article to learn how to play the palace card game.",
|
1575 |
+
"task": "play_the_palace_card_game-8.textproto",
|
1576 |
+
"index": "0",
|
1577 |
+
"label": [
|
1578 |
+
"Search an article to learn rules of play for the Palace card game.",
|
1579 |
+
"How to play the palace card game?",
|
1580 |
+
"I've got a pack of cards and tell me how to play the Palace with my friends."
|
1581 |
+
]
|
1582 |
+
},
|
1583 |
+
{
|
1584 |
+
"id": 1234,
|
1585 |
+
"text": "Search an article to learn how to play wild cherry crossword tripler.",
|
1586 |
+
"task": "play_wild_cherry_crossword_tripler-7.textproto",
|
1587 |
+
"index": "0",
|
1588 |
+
"label": [
|
1589 |
+
"How to play the crossword puzzle game Wild Cherry?",
|
1590 |
+
"How to play wild cherry crossword tripler?",
|
1591 |
+
"Teach me to finish a Wild Cherry crossword puzzle."
|
1592 |
+
]
|
1593 |
+
},
|
1594 |
+
{
|
1595 |
+
"id": 1235,
|
1596 |
+
"text": "Search an article to learn how to practice radical honesty.",
|
1597 |
+
"task": "practice_radical_honesty-7.textproto",
|
1598 |
+
"index": "0",
|
1599 |
+
"label": [
|
1600 |
+
"Learn how to be really honest.",
|
1601 |
+
"How to practice radical honesty?",
|
1602 |
+
"I want to know how to be a completely honest man."
|
1603 |
+
]
|
1604 |
+
},
|
1605 |
+
{
|
1606 |
+
"id": 1236,
|
1607 |
+
"text": "Search an article to learn how to prepare used cooking oil for biodiesel.",
|
1608 |
+
"task": "prepare_used_cooking_oil_for_biodiesel-8.textproto",
|
1609 |
+
"index": "0",
|
1610 |
+
"label": [
|
1611 |
+
"Find out how to make biodiesel from leftover cooking oil.",
|
1612 |
+
"How to prepare used cooking oil for biodiesel?",
|
1613 |
+
"I want to learn a method to apply used edible oil to biodiesel."
|
1614 |
+
]
|
1615 |
+
},
|
1616 |
+
{
|
1617 |
+
"id": 1237,
|
1618 |
+
"text": "Search an article to learn how to prevent urinary tract infections from sex.",
|
1619 |
+
"task": "prevent_urinary_tract_infections_from_sex-7.textproto",
|
1620 |
+
"index": "0",
|
1621 |
+
"label": [
|
1622 |
+
"How can we avoid sex-related urinary tract infections?",
|
1623 |
+
"How to prevent the risk of getting urinary tract infections from sex?",
|
1624 |
+
"I want to learn how to avoid urinary tract infections from sex."
|
1625 |
+
]
|
1626 |
+
},
|
1627 |
+
{
|
1628 |
+
"id": 1238,
|
1629 |
+
"text": "Search an article to learn how to print to pdf.",
|
1630 |
+
"task": "print_to_pdf-4.textproto",
|
1631 |
+
"index": "0",
|
1632 |
+
"label": [
|
1633 |
+
"Discover how to print to pdf.",
|
1634 |
+
"How can I print a file to pdf?",
|
1635 |
+
"How can I export my file to PDF?"
|
1636 |
+
]
|
1637 |
+
},
|
1638 |
+
{
|
1639 |
+
"id": 1239,
|
1640 |
+
"text": "Search an article to learn how to put icons on the desktop of an ipad.",
|
1641 |
+
"task": "put_icons_on_the_desktop_of_an_ipad-8.textproto",
|
1642 |
+
"index": "0",
|
1643 |
+
"label": [
|
1644 |
+
"How to add icons to your iPad's desktop?",
|
1645 |
+
"As an ipad user, what are the steps to put icons on the desktop?",
|
1646 |
+
"How can I add icons to the iPad desktop?"
|
1647 |
+
]
|
1648 |
+
},
|
1649 |
+
{
|
1650 |
+
"id": 1240,
|
1651 |
+
"text": "Search an article to learn how to reach god in sikhism.",
|
1652 |
+
"task": "reach_god_in_sikhism-0.textproto",
|
1653 |
+
"index": "0",
|
1654 |
+
"label": [
|
1655 |
+
"In Sikhism, how does one approach God?",
|
1656 |
+
"Is there a way to reach god in sikhism?",
|
1657 |
+
"How do Sikhs prey to their God?",
|
1658 |
+
"What is the way that Sikhs reach their God?"
|
1659 |
+
]
|
1660 |
+
},
|
1661 |
+
{
|
1662 |
+
"id": 1241,
|
1663 |
+
"text": "Search an article to learn how to record electric guitar.",
|
1664 |
+
"task": "record_electric_guitar-7.textproto",
|
1665 |
+
"index": "0",
|
1666 |
+
"label": [
|
1667 |
+
"How to take a recording for an electric guitar?",
|
1668 |
+
"How can I record the sounds on my amp?",
|
1669 |
+
"How can we record the sounds from the electric guitar?"
|
1670 |
+
]
|
1671 |
+
},
|
1672 |
+
{
|
1673 |
+
"id": 1242,
|
1674 |
+
"text": "Search an article to learn how to reduce meltdowns and tantrums in autistic children.",
|
1675 |
+
"task": "reduce_meltdowns_and_tantrums_in_autistic_children-6.textproto",
|
1676 |
+
"index": "0",
|
1677 |
+
"label": [
|
1678 |
+
"How to reduce the collapse and tantrums of autistic children.",
|
1679 |
+
"For autistic children, how to reduce meltdowns and tantrums?",
|
1680 |
+
"I want to learn to placate an autistic child.",
|
1681 |
+
"What can we do to calm an autistic child down.?"
|
1682 |
+
]
|
1683 |
+
},
|
1684 |
+
{
|
1685 |
+
"id": 1243,
|
1686 |
+
"text": "Search an article to learn how to refill copic markers.",
|
1687 |
+
"task": "refill_copic_markers-0.textproto",
|
1688 |
+
"index": "0",
|
1689 |
+
"label": [
|
1690 |
+
"Where to purchase copic marker refills?",
|
1691 |
+
"How to refill copic markers?",
|
1692 |
+
"How should I refill a Copic marker?"
|
1693 |
+
]
|
1694 |
+
},
|
1695 |
+
{
|
1696 |
+
"id": 1244,
|
1697 |
+
"text": "Search an article to learn how to remember the trigonometric table.",
|
1698 |
+
"task": "remember_the_trigonometric_table-8.textproto",
|
1699 |
+
"index": "0",
|
1700 |
+
"label": [
|
1701 |
+
"How to practice remembering the trigonometric table?",
|
1702 |
+
"It is too hard to remember the trigonometric table. Any ideas?",
|
1703 |
+
"How can I remember the table of the trigonometric function values?",
|
1704 |
+
"How can I remember the values of the trigonometric functions?"
|
1705 |
+
]
|
1706 |
+
},
|
1707 |
+
{
|
1708 |
+
"id": 1245,
|
1709 |
+
"text": "Search an article to learn how to remove dog saliva stains.",
|
1710 |
+
"task": "remove_dog_saliva_stains-7.textproto",
|
1711 |
+
"index": "0",
|
1712 |
+
"label": [
|
1713 |
+
"How to get rid of dog stains?",
|
1714 |
+
"How can I remove dog saliva stains?",
|
1715 |
+
"Is there any way to clean the marks of dog saliva?"
|
1716 |
+
]
|
1717 |
+
},
|
1718 |
+
{
|
1719 |
+
"id": 1246,
|
1720 |
+
"text": "Search an article to learn how to remove hair removal wax from the carpet.",
|
1721 |
+
"task": "remove_hair_removal_wax_from_the_carpet-4.textproto",
|
1722 |
+
"index": "0",
|
1723 |
+
"label": [
|
1724 |
+
"Discover how to remove hair removal wax from carpet.",
|
1725 |
+
"Some hair removal wax is in the carpet. How can I remove them?",
|
1726 |
+
"What is the best way the take the dripped hair removal wax from the carpet."
|
1727 |
+
]
|
1728 |
+
},
|
1729 |
+
{
|
1730 |
+
"id": 1247,
|
1731 |
+
"text": "Search an article to learn how to reset an odometer on a honda fit.",
|
1732 |
+
"task": "reset_an_odometer_on_a_honda_fit-8.textproto",
|
1733 |
+
"index": "0",
|
1734 |
+
"label": [
|
1735 |
+
"How to reset a Honda Fit's Odometer?",
|
1736 |
+
"To reset an odometer on a honda fit, what should I do?",
|
1737 |
+
"I've got a Honda Fit and wonder if I can clear its odometer?",
|
1738 |
+
"Is there a method for me to clear the odometer of trip meter on a Honda Fit?"
|
1739 |
+
]
|
1740 |
+
},
|
1741 |
+
{
|
1742 |
+
"id": 1248,
|
1743 |
+
"text": "Search an article to learn how to respond to redirected aggression in cats.",
|
1744 |
+
"task": "respond_to_redirected_aggression_in_cats-7.textproto",
|
1745 |
+
"index": "0",
|
1746 |
+
"label": [
|
1747 |
+
"How should one react to a cat's misdirected aggression?",
|
1748 |
+
"If a redirected aggression occurs in cats, how should I respond to it?",
|
1749 |
+
"How can I deal with the redirected aggression of my cat?",
|
1750 |
+
"What's the good way to handle the redirected anger from a cat?"
|
1751 |
+
]
|
1752 |
+
},
|
1753 |
+
{
|
1754 |
+
"id": 1249,
|
1755 |
+
"text": "Search an article to learn how to retire in your 30s.",
|
1756 |
+
"task": "retire_in_your_30s-4.textproto",
|
1757 |
+
"index": "0",
|
1758 |
+
"label": [
|
1759 |
+
"Find how to retire in your 30s.",
|
1760 |
+
"What should I do to retire in my 30s?",
|
1761 |
+
"I'm tired of work and want to learn if I can retire right after my 30th birthday.",
|
1762 |
+
"Is it possiple for a 30-year-old man to enjoy retirement?"
|
1763 |
+
]
|
1764 |
+
},
|
1765 |
+
{
|
1766 |
+
"id": 1250,
|
1767 |
+
"text": "Search an article to learn how to rip jeggings.",
|
1768 |
+
"task": "rip_jeggings-4.textproto",
|
1769 |
+
"index": "0",
|
1770 |
+
"label": [
|
1771 |
+
"See how to tear jeggings.",
|
1772 |
+
"How can I rip the jean leggings?",
|
1773 |
+
"How can the jeggins be distressed?",
|
1774 |
+
"How can we make tears on jeggings?"
|
1775 |
+
]
|
1776 |
+
},
|
1777 |
+
{
|
1778 |
+
"id": 1253,
|
1779 |
+
"text": "Search an article to learn how to sell on amazon.",
|
1780 |
+
"task": "sell_on_amazon-0.textproto",
|
1781 |
+
"index": "0",
|
1782 |
+
"label": [
|
1783 |
+
"Discover how to sell on Amazon.",
|
1784 |
+
"How to become a seller on amazon?",
|
1785 |
+
"How do I launch a sale on Amazon?"
|
1786 |
+
]
|
1787 |
+
},
|
1788 |
+
{
|
1789 |
+
"id": 1254,
|
1790 |
+
"text": "Search an article to learn how to serve chianti.",
|
1791 |
+
"task": "serve_chianti-7.textproto",
|
1792 |
+
"index": "0",
|
1793 |
+
"label": [
|
1794 |
+
"I'd like to study chianti service techniques.",
|
1795 |
+
"What is the best way to enjoy Chianti?"
|
1796 |
+
]
|
1797 |
+
},
|
1798 |
+
{
|
1799 |
+
"id": 1255,
|
1800 |
+
"text": "Search an article to learn how to set up a dba.",
|
1801 |
+
"task": "set_up_a_dba-8.textproto",
|
1802 |
+
"index": "0",
|
1803 |
+
"label": [
|
1804 |
+
"I want to learn to register an alternative dba for my business."
|
1805 |
+
]
|
1806 |
+
},
|
1807 |
+
{
|
1808 |
+
"id": 1256,
|
1809 |
+
"text": "Search an article to learn how to set up a playful environment in a rabbit's cage.",
|
1810 |
+
"task": "set_up_a_playful_environment_in_a_rabbitP27s_cage-7.textproto",
|
1811 |
+
"index": "0",
|
1812 |
+
"label": [
|
1813 |
+
"How can I create a fun environment in a rabbit's cage?",
|
1814 |
+
"How to set up a playful environment for the rabbits in their cage?",
|
1815 |
+
"I want to learn to build a playful region for my rabbit in its cage.",
|
1816 |
+
"I want to learn to build a playful region for my rabbit."
|
1817 |
+
]
|
1818 |
+
},
|
1819 |
+
{
|
1820 |
+
"id": 1257,
|
1821 |
+
"text": "Search an article to learn how to sew oilcloth.",
|
1822 |
+
"task": "sew_oilcloth-7.textproto",
|
1823 |
+
"index": "0",
|
1824 |
+
"label": [
|
1825 |
+
"How is oilcloth sewn?",
|
1826 |
+
"I want to learn how to seam the oilcloth.",
|
1827 |
+
"I want to learn how to sew oilskin."
|
1828 |
+
]
|
1829 |
+
},
|
1830 |
+
{
|
1831 |
+
"id": 1258,
|
1832 |
+
"text": "Search an article to learn how to sew patches on a leather vest.",
|
1833 |
+
"task": "sew_patches_on_a_leather_vest-0.textproto",
|
1834 |
+
"index": "0",
|
1835 |
+
"label": [
|
1836 |
+
"Look for an article on how to sew patches on a leather vest.",
|
1837 |
+
"What is the best way to sew patches on a leather vest?",
|
1838 |
+
"I'd like to learn to sew patches on the leathern waistcoat."
|
1839 |
+
]
|
1840 |
+
},
|
1841 |
+
{
|
1842 |
+
"id": 1260,
|
1843 |
+
"text": "Search an article to learn how to sleep with wet hair.",
|
1844 |
+
"task": "sleep_with_wet_hair-8.textproto",
|
1845 |
+
"index": "0",
|
1846 |
+
"label": [
|
1847 |
+
"How can I sleep when my hair is wet?",
|
1848 |
+
"When my hair is wet, how to sleep with it?",
|
1849 |
+
"I want to learn if I can go to bed directly without drying my hair."
|
1850 |
+
]
|
1851 |
+
},
|
1852 |
+
{
|
1853 |
+
"id": 1261,
|
1854 |
+
"text": "Search an article to learn how to slip stitch.",
|
1855 |
+
"task": "slip_stitch-7.textproto",
|
1856 |
+
"index": "0",
|
1857 |
+
"label": [
|
1858 |
+
"Show me the slip stitch technique.",
|
1859 |
+
"So how to slip stitch?",
|
1860 |
+
"I want to learn to slip stitch for my needlework."
|
1861 |
+
]
|
1862 |
+
},
|
1863 |
+
{
|
1864 |
+
"id": 1262,
|
1865 |
+
"text": "Search an article to learn how to start a formal email.",
|
1866 |
+
"task": "start_a_formal_email-7.textproto",
|
1867 |
+
"index": "0",
|
1868 |
+
"label": [
|
1869 |
+
"See how to start a formal email.",
|
1870 |
+
"What should I write to start a formal email?",
|
1871 |
+
"I want to know how an official email is usually started."
|
1872 |
+
]
|
1873 |
+
},
|
1874 |
+
{
|
1875 |
+
"id": 1263,
|
1876 |
+
"text": "Search an article to learn how to start a motorcycle.",
|
1877 |
+
"task": "start_a_motorcycle-4.textproto",
|
1878 |
+
"index": "0",
|
1879 |
+
"label": [
|
1880 |
+
"How could I study motorbike starting techniques?",
|
1881 |
+
"What should I do to start a motorcycle?",
|
1882 |
+
"I don't know how to launch a motorbike."
|
1883 |
+
]
|
1884 |
+
},
|
1885 |
+
{
|
1886 |
+
"id": 1264,
|
1887 |
+
"text": "Search an article to learn how to stay happy.",
|
1888 |
+
"task": "stay_happy-8.textproto",
|
1889 |
+
"index": "0",
|
1890 |
+
"label": [
|
1891 |
+
"How to be happy?",
|
1892 |
+
"How can I stay happy?",
|
1893 |
+
"Tell me how to keep happy in life."
|
1894 |
+
]
|
1895 |
+
},
|
1896 |
+
{
|
1897 |
+
"id": 1265,
|
1898 |
+
"text": "Search an article to learn how to stop biting your lips.",
|
1899 |
+
"task": "stop_biting_your_lips-0.textproto",
|
1900 |
+
"index": "0",
|
1901 |
+
"label": [
|
1902 |
+
"How to stop chewing lips?",
|
1903 |
+
"I want to stop biting my lips. What should I do?",
|
1904 |
+
"I cannot control to bite my lips and is there any way that can help me?"
|
1905 |
+
]
|
1906 |
+
},
|
1907 |
+
{
|
1908 |
+
"id": 1266,
|
1909 |
+
"text": "Search an article to learn how to stop bullying.",
|
1910 |
+
"task": "stop_bullying-8.textproto",
|
1911 |
+
"index": "0",
|
1912 |
+
"label": [
|
1913 |
+
"How can bullying be avoided?",
|
1914 |
+
"How to stop bullying?",
|
1915 |
+
"What can I do if I run into a bullying?",
|
1916 |
+
"What can I do when I meet a bullying."
|
1917 |
+
]
|
1918 |
+
},
|
1919 |
+
{
|
1920 |
+
"id": 1267,
|
1921 |
+
"text": "Search an article to learn how to straighten your hair without chemicals.",
|
1922 |
+
"task": "straighten_your_hair_without_chemicals-0.textproto",
|
1923 |
+
"index": "0",
|
1924 |
+
"label": [
|
1925 |
+
"Look for an article on how to smooth your hair without using chemicals.",
|
1926 |
+
"What should I do if I do not want to use chemicals but to straighten my hair?",
|
1927 |
+
"I want to straighten the curly hair but want to prevent using chemicals."
|
1928 |
+
]
|
1929 |
+
},
|
1930 |
+
{
|
1931 |
+
"id": 1268,
|
1932 |
+
"text": "Search an article to learn how to style your faux locs.",
|
1933 |
+
"task": "style_your_faux_locs-8.textproto",
|
1934 |
+
"index": "0",
|
1935 |
+
"label": [
|
1936 |
+
"Discover how to style your fake locs.",
|
1937 |
+
"How to style my faux locs?",
|
1938 |
+
"How can I make my faus locs more fashion?"
|
1939 |
+
]
|
1940 |
+
},
|
1941 |
+
{
|
1942 |
+
"id": 1269,
|
1943 |
+
"text": "Search an article to learn how to take water marks off vehicles.",
|
1944 |
+
"task": "take_water_marks_off_vehicles-4.textproto",
|
1945 |
+
"index": "0",
|
1946 |
+
"label": [
|
1947 |
+
"How to remove the water marks on the vehicle?",
|
1948 |
+
"Is there a way to clean water marks from vehicles?",
|
1949 |
+
"Tell me how to remove the water stains from my car."
|
1950 |
+
]
|
1951 |
+
},
|
1952 |
+
{
|
1953 |
+
"id": 1270,
|
1954 |
+
"text": "Search an article to learn how to tell if your goldfish is an adult.",
|
1955 |
+
"task": "tell_if_your_goldfish_is_an_adult-4.textproto",
|
1956 |
+
"index": "0",
|
1957 |
+
"label": [
|
1958 |
+
"How to identify an adult goldfish?",
|
1959 |
+
"Is my goldfish an adult?",
|
1960 |
+
"How can I know if a goldfish is an adult.",
|
1961 |
+
"I wonder how to dinstinguish the adults from the goldfish."
|
1962 |
+
]
|
1963 |
+
},
|
1964 |
+
{
|
1965 |
+
"id": 1271,
|
1966 |
+
"text": "Search an article to learn how to tile a shower.",
|
1967 |
+
"task": "tile_a_shower-0.textproto",
|
1968 |
+
"index": "0",
|
1969 |
+
"label": [
|
1970 |
+
"Explore how to tile a shower.",
|
1971 |
+
"How do I tile a shower?",
|
1972 |
+
"How can I tile a shower room at home?",
|
1973 |
+
"How can we lay tiles in a shower?"
|
1974 |
+
]
|
1975 |
+
},
|
1976 |
+
{
|
1977 |
+
"id": 1272,
|
1978 |
+
"text": "Search an article to learn how to tolerate those you have a personality clash with.",
|
1979 |
+
"task": "tolerate_those_you_have_a_personality_clash_with-0.textproto",
|
1980 |
+
"index": "0",
|
1981 |
+
"label": [
|
1982 |
+
"how to deal with people with whom you don't get along.",
|
1983 |
+
"How do I tolerate people whom I have a personality clash with?",
|
1984 |
+
"How should I deal with a person if we have some personality conflict?"
|
1985 |
+
]
|
1986 |
+
},
|
1987 |
+
{
|
1988 |
+
"id": 1273,
|
1989 |
+
"text": "Search an article to learn how to transfer a vehicle tag in florida.",
|
1990 |
+
"task": "transfer_a_vehicle_tag_in_florida-8.textproto",
|
1991 |
+
"index": "0",
|
1992 |
+
"label": [
|
1993 |
+
"See how to transfer a Florida vehicle tag.",
|
1994 |
+
"In florida, what are the steps to transfer a vehicle tag?",
|
1995 |
+
"Do you know how to transfer a licence plate of vehicle in Florida?"
|
1996 |
+
]
|
1997 |
+
},
|
1998 |
+
{
|
1999 |
+
"id": 1274,
|
2000 |
+
"text": "Search an article to learn how to treat heaves in horses.",
|
2001 |
+
"task": "treat_heaves_in_horses-7.textproto",
|
2002 |
+
"index": "0",
|
2003 |
+
"label": [
|
2004 |
+
"What is the best way to cure heaves in horses?",
|
2005 |
+
"How to treat heaves in horses?",
|
2006 |
+
"How can we cure the heaves of the horses?"
|
2007 |
+
]
|
2008 |
+
},
|
2009 |
+
{
|
2010 |
+
"id": 1275,
|
2011 |
+
"text": "Search an article to learn how to trim bangs between haircuts.",
|
2012 |
+
"task": "trim_bangs_between_haircuts-0.textproto",
|
2013 |
+
"index": "0",
|
2014 |
+
"label": [
|
2015 |
+
"Look for an article on how to clip bangs between haircuts.",
|
2016 |
+
"How can I trim bangs between haircuts?",
|
2017 |
+
"I want to learn to have my bangs cut by myself between haircuts."
|
2018 |
+
]
|
2019 |
+
},
|
2020 |
+
{
|
2021 |
+
"id": 1276,
|
2022 |
+
"text": "Search an article to learn how to turn documents into pdfs for free (windows).",
|
2023 |
+
"task": "turn_documents_into_pdfs_for_free_P28windowsP29-0.textproto",
|
2024 |
+
"index": "0",
|
2025 |
+
"label": [
|
2026 |
+
"How to convert documents to PDFs for free?",
|
2027 |
+
"Is there any way to turn documents into pdfs with no money cost on windows?",
|
2028 |
+
"Can I convert a file to PDF on Windows for zero cost?"
|
2029 |
+
]
|
2030 |
+
},
|
2031 |
+
{
|
2032 |
+
"id": 1277,
|
2033 |
+
"text": "Search an article to learn how to use a hair diffuser.",
|
2034 |
+
"task": "use_a_hair_diffuser-6.textproto",
|
2035 |
+
"index": "0",
|
2036 |
+
"label": [
|
2037 |
+
"Discover how to utilize a hair diffuser.",
|
2038 |
+
"Search for a tutorial for a hair diffuser.",
|
2039 |
+
"How is the hair diffuser used?",
|
2040 |
+
"I wonder the usage of a hair diffuser."
|
2041 |
+
]
|
2042 |
+
},
|
2043 |
+
{
|
2044 |
+
"id": 1278,
|
2045 |
+
"text": "Search an article to learn how to use egg yolks.",
|
2046 |
+
"task": "use_egg_yolks-4.textproto",
|
2047 |
+
"index": "0",
|
2048 |
+
"label": [
|
2049 |
+
"How many ways are there to use egg yolks in cooking?",
|
2050 |
+
"I need a recipe to cook with the leftover egg yolks."
|
2051 |
+
]
|
2052 |
+
},
|
2053 |
+
{
|
2054 |
+
"id": 1279,
|
2055 |
+
"text": "Search an article to learn how to use scissors in gimp.",
|
2056 |
+
"task": "use_scissors_in_gimp-0.textproto",
|
2057 |
+
"index": "0",
|
2058 |
+
"label": [
|
2059 |
+
"To find out how to use scissors in Gimp, search a website.",
|
2060 |
+
"How to use scissors in gimp?",
|
2061 |
+
"I need to learn to use the scissors tool in GIMP.",
|
2062 |
+
"I want to learn the usage of the scissors tool in GIMP."
|
2063 |
+
]
|
2064 |
+
},
|
2065 |
+
{
|
2066 |
+
"id": 1280,
|
2067 |
+
"text": "Search an article to learn how to use seafoam.",
|
2068 |
+
"task": "use_seafoam-0.textproto",
|
2069 |
+
"index": "0",
|
2070 |
+
"label": [
|
2071 |
+
"Discover how to utilize seafoam.",
|
2072 |
+
"How do people use Seafoam to maintain their engine?"
|
2073 |
+
]
|
2074 |
+
},
|
2075 |
+
{
|
2076 |
+
"id": 1281,
|
2077 |
+
"text": "Search an article to learn how to wear a dress to school.",
|
2078 |
+
"task": "wear_a_dress_to_school-6.textproto",
|
2079 |
+
"index": "0",
|
2080 |
+
"label": [
|
2081 |
+
"Find out how to dress for school.",
|
2082 |
+
"What if I want to wear a dress to school?",
|
2083 |
+
"I want to find a good dressing plan for school life."
|
2084 |
+
]
|
2085 |
+
},
|
2086 |
+
{
|
2087 |
+
"id": 1282,
|
2088 |
+
"text": "Search an article to learn how to wear a haori coat.",
|
2089 |
+
"task": "wear_a_haori_coat-7.textproto",
|
2090 |
+
"index": "0",
|
2091 |
+
"label": [
|
2092 |
+
"Look for an article on how to wear a haori coat.",
|
2093 |
+
"How do I wear a haori coat?",
|
2094 |
+
"I want to learn to dress up with a haori coat."
|
2095 |
+
]
|
2096 |
+
},
|
2097 |
+
{
|
2098 |
+
"id": 1283,
|
2099 |
+
"text": "Search an article to learn how to wear high heels without pain.",
|
2100 |
+
"task": "wear_high_heels_without_pain-7.textproto",
|
2101 |
+
"index": "0",
|
2102 |
+
"label": [
|
2103 |
+
"How may high heels be worn without hurting?",
|
2104 |
+
"To avoid pain, how to wear high heels?",
|
2105 |
+
"Is it possible to try high heels comfortably?"
|
2106 |
+
]
|
2107 |
+
},
|
2108 |
+
{
|
2109 |
+
"id": 1284,
|
2110 |
+
"text": "Search an article to learn how to win at a claw machine.",
|
2111 |
+
"task": "win_at_a_claw_machine-8.textproto",
|
2112 |
+
"index": "0",
|
2113 |
+
"label": [
|
2114 |
+
"Find an article about how to win at a claw machine.",
|
2115 |
+
"How should I play to win at the claw machine?",
|
2116 |
+
"How can I successfully acquire a doll from the claw machine?"
|
2117 |
+
]
|
2118 |
+
},
|
2119 |
+
{
|
2120 |
+
"id": 1285,
|
2121 |
+
"text": "Search an article to learn how to wrap luggage in plastic at home.",
|
2122 |
+
"task": "wrap_luggage_in_plastic_at_home-8.textproto",
|
2123 |
+
"index": "0",
|
2124 |
+
"label": [
|
2125 |
+
"At home, learn how to wrap baggage in plastic.",
|
2126 |
+
"When at home, how can I wrap luggage in plastic?",
|
2127 |
+
"Is there a way for the baggage to be wrapped in plastic by ourselves?"
|
2128 |
+
]
|
2129 |
+
},
|
2130 |
+
{
|
2131 |
+
"id": 1286,
|
2132 |
+
"text": "Search an article to learn how to write a check to two people.",
|
2133 |
+
"task": "write_a_check_to_two_people-8.textproto",
|
2134 |
+
"index": "0",
|
2135 |
+
"label": [
|
2136 |
+
"Look up how to write a check to two persons.",
|
2137 |
+
"Search a way to write a check to two people.",
|
2138 |
+
"What should I note when writing a cheque to two payees?"
|
2139 |
+
]
|
2140 |
+
},
|
2141 |
+
{
|
2142 |
+
"id": 1287,
|
2143 |
+
"text": "Search an article to learn how to write a mental health assessment.",
|
2144 |
+
"task": "write_a_mental_health_assessment-0.textproto",
|
2145 |
+
"index": "0",
|
2146 |
+
"label": [
|
2147 |
+
"How to write psychological health assessment?",
|
2148 |
+
"How do I finish a mental health assessment?",
|
2149 |
+
"I want to learn to fill a mental health assessment."
|
2150 |
+
]
|
2151 |
+
},
|
2152 |
+
{
|
2153 |
+
"id": 1288,
|
2154 |
+
"text": "Search an article to learn how to write a zine.",
|
2155 |
+
"task": "write_a_zine-8.textproto",
|
2156 |
+
"index": "0",
|
2157 |
+
"label": [
|
2158 |
+
"Look for an article on how to create a zine.",
|
2159 |
+
"How does an editor write a zine?",
|
2160 |
+
"How can I compose a mini magazine?",
|
2161 |
+
"How can I compose a zine?",
|
2162 |
+
"How can I write a zine?"
|
2163 |
+
]
|
2164 |
+
},
|
2165 |
+
{
|
2166 |
+
"id": 1289,
|
2167 |
+
"text": "Search an article to learn how to write bold text on skype.",
|
2168 |
+
"task": "write_bold_text_on_skype-4.textproto",
|
2169 |
+
"index": "0",
|
2170 |
+
"label": [
|
2171 |
+
"Learn how to write in bold on Skype.",
|
2172 |
+
"On skype how do I write text in bold?",
|
2173 |
+
"I wonder how to type bold letters on Skype."
|
2174 |
+
]
|
2175 |
+
},
|
2176 |
+
{
|
2177 |
+
"id": 1290,
|
2178 |
+
"text": "Search an article to learn how to write corporate minutes.",
|
2179 |
+
"task": "write_corporate_minutes-0.textproto",
|
2180 |
+
"index": "0",
|
2181 |
+
"label": [
|
2182 |
+
"Give me some ways to record company meetings.",
|
2183 |
+
"What is the correct way to write corporate minutes?",
|
2184 |
+
"I need to learn to write corporate minutes."
|
2185 |
+
]
|
2186 |
+
},
|
2187 |
+
{
|
2188 |
+
"id": 1291,
|
2189 |
+
"text": "Access the about page to learn why people trust wikihow.",
|
2190 |
+
"task": "constant",
|
2191 |
+
"index": "0",
|
2192 |
+
"label": [
|
2193 |
+
"Why people believe wikihow?",
|
2194 |
+
"Enter the about page containing the reason why people trust wikihow.",
|
2195 |
+
"Check the about page for the reliability of WikiHow."
|
2196 |
+
]
|
2197 |
+
},
|
2198 |
+
{
|
2199 |
+
"id": 1292,
|
2200 |
+
"text": "Bookmark the article and check the bookmark.",
|
2201 |
+
"task": "constant",
|
2202 |
+
"index": "0",
|
2203 |
+
"label": [
|
2204 |
+
"Make a bookmark for the article and then check it.",
|
2205 |
+
"Highlight the article as a bookmark and check it.",
|
2206 |
+
"Add bookmark for this article and go to the bookmark list to check."
|
2207 |
+
]
|
2208 |
+
},
|
2209 |
+
{
|
2210 |
+
"id": 1293,
|
2211 |
+
"text": "Access the category listing page",
|
2212 |
+
"task": "constant",
|
2213 |
+
"index": "0",
|
2214 |
+
"label": [
|
2215 |
+
"Go to the category listing page.",
|
2216 |
+
"Check the category listing page.",
|
2217 |
+
"Please open the page listing all the categories."
|
2218 |
+
]
|
2219 |
+
},
|
2220 |
+
{
|
2221 |
+
"id": 1294,
|
2222 |
+
"text": "Pick a random article to read.",
|
2223 |
+
"task": "constant",
|
2224 |
+
"index": "0",
|
2225 |
+
"label": [
|
2226 |
+
"Choose one article at random to read.",
|
2227 |
+
"Choose an article to read randomly.",
|
2228 |
+
"Access from the random article.",
|
2229 |
+
"Explore a random article."
|
2230 |
+
]
|
2231 |
+
},
|
2232 |
+
{
|
2233 |
+
"id": 1295,
|
2234 |
+
"text": "Rate no for the article.",
|
2235 |
+
"task": "constant",
|
2236 |
+
"index": "0",
|
2237 |
+
"label": [
|
2238 |
+
"Zero rating for the article.",
|
2239 |
+
"Give the rate of \"no\" to the article.",
|
2240 |
+
"Give a negative comment to the article.",
|
2241 |
+
"This article doesn't help.",
|
2242 |
+
"You can give a thumb-down for this article."
|
2243 |
+
]
|
2244 |
+
},
|
2245 |
+
{
|
2246 |
+
"id": 1296,
|
2247 |
+
"text": "Rate yes for the article.",
|
2248 |
+
"task": "constant",
|
2249 |
+
"index": "0",
|
2250 |
+
"label": [
|
2251 |
+
"Praise this article",
|
2252 |
+
"Give the \"yes\" rate to the article.",
|
2253 |
+
"I'd like to give a positive comment for the article.",
|
2254 |
+
"Please give a like to the article.",
|
2255 |
+
"Please give a thumb-up to the article."
|
2256 |
+
]
|
2257 |
+
},
|
2258 |
+
{
|
2259 |
+
"id": 1297,
|
2260 |
+
"text": "Check the reference list",
|
2261 |
+
"task": "constant",
|
2262 |
+
"index": "0",
|
2263 |
+
"label": [
|
2264 |
+
"Examine the reference list",
|
2265 |
+
"Access the section of reference list.",
|
2266 |
+
"Show me the reference list."
|
2267 |
+
]
|
2268 |
+
},
|
2269 |
+
{
|
2270 |
+
"id": 1298,
|
2271 |
+
"text": "Try to share the article.",
|
2272 |
+
"task": "constant",
|
2273 |
+
"index": "0",
|
2274 |
+
"label": [
|
2275 |
+
"Try to spread the article.",
|
2276 |
+
"Share the article to other apps.",
|
2277 |
+
"Make a try to share the article to other platforms."
|
2278 |
+
]
|
2279 |
+
},
|
2280 |
+
{
|
2281 |
+
"id": 1299,
|
2282 |
+
"text": "Check the author page of Nicole Levine, MFA.",
|
2283 |
+
"task": "prototype",
|
2284 |
+
"index": "0",
|
2285 |
+
"label": [
|
2286 |
+
"Check out Nicole Levine's MFA author page.",
|
2287 |
+
"Access the author page of Nicole Levine, MFA.",
|
2288 |
+
"Click the author Nicole Levine, MFA."
|
2289 |
+
]
|
2290 |
+
},
|
2291 |
+
{
|
2292 |
+
"id": 1300,
|
2293 |
+
"text": "Access the page of category Financial Stocks",
|
2294 |
+
"task": "prototype",
|
2295 |
+
"index": "0",
|
2296 |
+
"label": [
|
2297 |
+
"Navigate to the Financial Stocks category page.",
|
2298 |
+
"Enter the category Financial Stocks.",
|
2299 |
+
"Go check the other articles under the category Financial Stocks."
|
2300 |
+
]
|
2301 |
+
},
|
2302 |
+
{
|
2303 |
+
"id": 1301,
|
2304 |
+
"text": "Access the article \"Buy Stocks (for Beginners)\"",
|
2305 |
+
"task": "prototype",
|
2306 |
+
"index": "0",
|
2307 |
+
"label": [
|
2308 |
+
"Visit the \"Buy Stocks (for Beginners)\" article page.",
|
2309 |
+
"\"Buy Stocks (for Beginners)\" may be helpful for us.",
|
2310 |
+
"Open the article \"Buy Stocks (for Beginners)\".",
|
2311 |
+
"The target article is \"Buy Stocks (for Beginners)\"."
|
2312 |
+
]
|
2313 |
+
}
|
2314 |
+
]
|
instruction_rewriting/annotations/pattern-article.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Access the article {<article>...}.
|
2 |
+
Visit the {<article>...} article page.
|
3 |
+
{<article>...} may be helpful for us.
|
4 |
+
Open the article {<article>...}.
|
5 |
+
The target article is {<article>...}.
|
instruction_rewriting/annotations/pattern-article2.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Access the article (about/involving/regarding/with regarn to/with respect to) {<kw>...}.
|
2 |
+
Visit the article page (about/involving/regarding/with regard to/with respect to) {<kw>...}.
|
3 |
+
Open the article (about/involving/regarding/with regard to/with respect to) {<kw>...}.
|
4 |
+
The target article is (about/involving/regarding/with regard to/with respect to) {<kw>...}.
|
instruction_rewriting/annotations/pattern-author.txt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
(Access/Check) the author page of {<who>...}.
|
2 |
+
Check out {<who>...}'s author page.
|
3 |
+
Click the author {<who>...}.
|
instruction_rewriting/annotations/pattern-categ.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Access the page of category {<categ>...}.
|
2 |
+
Navigate to the {<categ>...} category page.
|
3 |
+
Enter the category {<categ>...}.
|
4 |
+
Go check the other articles under the category {<categ>...}.
|
instruction_rewriting/annotations/pattern-search.txt
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Can I learn to {<v.>...}?
|
2 |
+
Can (I/we) {<v.>...}?
|
3 |
+
(Discover/Learn/Look up/Reveal/See) how to {<v.>...}( by reading an article/ in an article/ via searching for an article).
|
4 |
+
(Do you know how/How/What to do) to {<v.>...}?
|
5 |
+
(Explore/Find [out]/Give me/Search[ me]/Search for/Please tell me/Teach me/Tell me) (a method/a way/how/some idea/some method[s]/some tips on how/some ways/the right way/the correct way/what is in need) to {<v.>...}.
|
6 |
+
(Find/Look for/Search[ me]/Search for) an (article/essay) (about/on/to learn) how to {<v.>...}.
|
7 |
+
(Find/Look for/Search[ me]/Search for) an (article/essay) to learn to {<v.>...}.
|
8 |
+
(Give me/Search for/Search me) (a guide/a tutorial/some suggestion/some tips) for {<v.ing>...}.
|
9 |
+
How (can/could/should) (I/one/people/we) {<v.>...}?
|
10 |
+
How (do I/do people/do we/do you/does one) {<v.>...}?
|
11 |
+
I don't to know how to {<v.>...}.
|
12 |
+
(I need/I want/I'm seeking) (a better way/a method/a solution/some plan) to {<v.>...}.
|
13 |
+
I want to {<v.>...}(./, so what should I do?)
|
14 |
+
I wonder how (I can/to) {<v.>...}.
|
15 |
+
(I need/I want/I'd like) to (find/know/learn) (a [good ]way/a method/how/some [new ]method/the skill/the way) to {<v.>...}.
|
16 |
+
(I need/I want/I'd like) to understand how to {<v.>...}.
|
17 |
+
(I need/I want/I'd like) to (know/learn) if I can {<v.>...}.
|
18 |
+
(I need/I want/I'd like) to learn to {<v.>...}.
|
19 |
+
(I want/I'd like) to try {<v.ing>...}.
|
20 |
+
If I (want/would like) to {<v.>...}, what should I do?
|
21 |
+
Is it (possible/probable)[ for (me/us)] to {<v.>...}?
|
22 |
+
Is there (a [good ]way/a method/any means/any thing to pay attetion/any way/anyway)[ for (me/us)] to {<v.>...}?
|
23 |
+
Is there any trick in {<v.ing>...}?
|
24 |
+
Search [for ](a/the) way to {<v.>...}.
|
25 |
+
Teach me to {<v.>...}.
|
26 |
+
What if I want to {<v.>...}?
|
27 |
+
(What is/What's) (a better/the/the best/the correct/the right) (approach/way) to {<v.>...}?
|
28 |
+
What (can/should) (I/one/we) do to {<v.>...}?
|
29 |
+
What should (I/one/we) note when {<v.ing>...}?
|
instruction_rewriting/instruction_rewriting_wrapper.py
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Created by Danyang Zhang @X-Lance.
|
2 |
+
|
3 |
+
from android_env.wrappers import base_wrapper
|
4 |
+
from android_env.environment import AndroidEnv
|
5 |
+
import numpy as np
|
6 |
+
from .target_handlers import TransformerSet
|
7 |
+
from typing import Union, Optional
|
8 |
+
from typing import List
|
9 |
+
import functools
|
10 |
+
import dm_env
|
11 |
+
|
12 |
+
class InstructionRewritingWrapper(base_wrapper.BaseWrapper):
|
13 |
+
# class InstructionRewritingWrapper {{{ #
|
14 |
+
"""
|
15 |
+
Transforms the instructions and commands of AndroidEnv.
|
16 |
+
"""
|
17 |
+
|
18 |
+
def __init__( self
|
19 |
+
, env: AndroidEnv
|
20 |
+
, search_pattern_file: str
|
21 |
+
, article_pattern_file: str
|
22 |
+
, article_command_pattern_file: str
|
23 |
+
, categ_pattern_file: str
|
24 |
+
, author_pattern_file: str
|
25 |
+
, doccano_file: str
|
26 |
+
):
|
27 |
+
# method __init__ {{{ #
|
28 |
+
super(InstructionRewritingWrapper, self).__init__(env)
|
29 |
+
|
30 |
+
rng = np.random.default_rng()
|
31 |
+
|
32 |
+
self._transformer: TransformerSet =\
|
33 |
+
TransformerSet( search_pattern_file
|
34 |
+
, article_pattern_file
|
35 |
+
, article_command_pattern_file
|
36 |
+
, categ_pattern_file
|
37 |
+
, author_pattern_file
|
38 |
+
, doccano_file
|
39 |
+
, rng
|
40 |
+
)
|
41 |
+
|
42 |
+
self._command: Optional[List[str]] = None
|
43 |
+
self._instructions: List[str] = []
|
44 |
+
# }}} method __init__ #
|
45 |
+
|
46 |
+
def _reset_state(self):
|
47 |
+
self._command = None
|
48 |
+
self._instructions = []
|
49 |
+
|
50 |
+
def command(self) -> List[str]:
|
51 |
+
# method command {{{ #
|
52 |
+
if self._command is None:
|
53 |
+
self._command = list( map( functools.partial( self._transformer.transform
|
54 |
+
, environment="command"
|
55 |
+
)
|
56 |
+
, self._env.command()
|
57 |
+
)
|
58 |
+
)
|
59 |
+
return self._command
|
60 |
+
# }}} method command #
|
61 |
+
def task_instructions(self, latest_only: bool=False) -> Union[str, List[str]]:
|
62 |
+
# method task_instructions {{{ #
|
63 |
+
if latest_only:
|
64 |
+
return self._instructions[-1] if len(self._instructions)>0 else ""
|
65 |
+
else:
|
66 |
+
return self._instructions.copy()
|
67 |
+
# }}} method task_instructions #
|
68 |
+
|
69 |
+
def _process_timestep(self, timestep: dm_env.TimeStep) -> dm_env.TimeStep:
|
70 |
+
# method _process_timestep {{{ #
|
71 |
+
self._instructions = list( map( functools.partial( self._transformer.transform
|
72 |
+
, environment="instruction"
|
73 |
+
)
|
74 |
+
, self._env.task_instructions()
|
75 |
+
)
|
76 |
+
)
|
77 |
+
return timestep
|
78 |
+
# }}} method _process_timestep #
|
79 |
+
# }}} class InstructionRewritingWrapper #
|
instruction_rewriting/sentence_pattern.py
ADDED
@@ -0,0 +1,398 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Created by Danyang Zhang @X-Lance.
|
2 |
+
|
3 |
+
import abc
|
4 |
+
from typing import Iterable, Iterator, Union
|
5 |
+
from typing import List, Tuple
|
6 |
+
#import enum
|
7 |
+
import numpy as np
|
8 |
+
import itertools
|
9 |
+
|
10 |
+
class Item(abc.ABC):
|
11 |
+
# class Item {{{ #
|
12 |
+
@abc.abstractmethod
|
13 |
+
def instantiate(self) -> str:
|
14 |
+
"""
|
15 |
+
Samples from the underlying template a sentence.
|
16 |
+
|
17 |
+
Return:
|
18 |
+
str
|
19 |
+
"""
|
20 |
+
|
21 |
+
raise NotImplementedError()
|
22 |
+
|
23 |
+
@property
|
24 |
+
@abc.abstractmethod
|
25 |
+
def regex(self) -> str:
|
26 |
+
raise NotImplementedError()
|
27 |
+
|
28 |
+
@abc.abstractmethod
|
29 |
+
def get_targets(self) -> List[str]:
|
30 |
+
"""
|
31 |
+
Collects the target patterns from the nodes or the sub-nodes
|
32 |
+
recursively.
|
33 |
+
|
34 |
+
Return:
|
35 |
+
list of str
|
36 |
+
"""
|
37 |
+
|
38 |
+
raise NotImplementedError()
|
39 |
+
|
40 |
+
@abc.abstractmethod
|
41 |
+
def implement(self, targets: Iterator[str]):
|
42 |
+
"""
|
43 |
+
Implements the target slots by the real target values. It is expected
|
44 |
+
for `targets` to have the same length with `self.getTarget()`.
|
45 |
+
|
46 |
+
Args:
|
47 |
+
target: iterator of str
|
48 |
+
"""
|
49 |
+
|
50 |
+
raise NotImplementedError()
|
51 |
+
|
52 |
+
def __add__(self, item: "Item") -> "Item":
|
53 |
+
if self is Nil:
|
54 |
+
return item
|
55 |
+
elif item is Nil:
|
56 |
+
return self
|
57 |
+
return Concat(self, item)
|
58 |
+
|
59 |
+
def __str__(self) -> str:
|
60 |
+
raise NotImplementedError()
|
61 |
+
def __repr__(self) -> str:
|
62 |
+
raise NotImplementedError()
|
63 |
+
# }}} class Item #
|
64 |
+
|
65 |
+
Nil = type( "Nil", (Item,)
|
66 |
+
, { "instantiate": lambda self: ""
|
67 |
+
, "regex": ""
|
68 |
+
, "get_targets": lambda self: []
|
69 |
+
, "implement": lambda self, tgts: None
|
70 |
+
, "__str__": lambda self: ""
|
71 |
+
, "__repr__": lambda self: "Nil"
|
72 |
+
}
|
73 |
+
)()
|
74 |
+
|
75 |
+
class Concat(Item):
|
76 |
+
# class Concat {{{ #
|
77 |
+
def __init__(self, *items: Iterable[Item]):
|
78 |
+
super(Concat, self).__init__()
|
79 |
+
|
80 |
+
self._items: List[Item] = []
|
81 |
+
self._regex: str = ""
|
82 |
+
|
83 |
+
for itm in items:
|
84 |
+
self += itm
|
85 |
+
|
86 |
+
def __iter__(self) -> Iterator[Item]:
|
87 |
+
return iter(self._items)
|
88 |
+
|
89 |
+
def __iadd__(self, item: Item) -> Item:
|
90 |
+
if isinstance(item, Concat):
|
91 |
+
self._items += item
|
92 |
+
elif item is not Nil:
|
93 |
+
self._items.append(item)
|
94 |
+
self._regex += item.regex
|
95 |
+
return self
|
96 |
+
|
97 |
+
def instantiate(self) -> str:
|
98 |
+
return "".join(map(lambda itm: itm.instantiate(), self._items))
|
99 |
+
|
100 |
+
@property
|
101 |
+
def regex(self) -> str:
|
102 |
+
return self._regex
|
103 |
+
|
104 |
+
def get_targets(self) -> List[str]:
|
105 |
+
return list( itertools.chain.from_iterable(
|
106 |
+
map( lambda itm: itm.get_targets()
|
107 |
+
, self._items
|
108 |
+
)
|
109 |
+
)
|
110 |
+
)
|
111 |
+
|
112 |
+
def implement(self, targets: Iterator[str]):
|
113 |
+
for itm in self._items:
|
114 |
+
itm.implement(targets)
|
115 |
+
|
116 |
+
def __str__(self) -> str:
|
117 |
+
return "".join(map(str, self._items))
|
118 |
+
def __repr__(self) -> str:
|
119 |
+
return "Concat({:})".format(
|
120 |
+
", ".join( map( repr
|
121 |
+
, self._items
|
122 |
+
)
|
123 |
+
)
|
124 |
+
)
|
125 |
+
# }}} class Concat #
|
126 |
+
|
127 |
+
class Const(Item):
|
128 |
+
# class Const {{{ #
|
129 |
+
regex_meta_chars = str.maketrans( { ch: "\\" + ch
|
130 |
+
for ch in [ ".", "^", "$", "*"
|
131 |
+
, "+", "?", "{", "}"
|
132 |
+
, "\\", "[", "]", "|"
|
133 |
+
, "(", ")"
|
134 |
+
]
|
135 |
+
}
|
136 |
+
)
|
137 |
+
|
138 |
+
def __init__(self, value: str):
|
139 |
+
super(Const, self).__init__()
|
140 |
+
|
141 |
+
self.value: str = value
|
142 |
+
self._regex: str = self.value.translate(Const.regex_meta_chars)
|
143 |
+
|
144 |
+
def instantiate(self) -> str:
|
145 |
+
return self.value
|
146 |
+
|
147 |
+
@property
|
148 |
+
def regex(self) -> str:
|
149 |
+
return self._regex
|
150 |
+
|
151 |
+
def get_targets(self) -> List[str]:
|
152 |
+
return []
|
153 |
+
|
154 |
+
def implement(self, targets: Iterator[str]):
|
155 |
+
pass
|
156 |
+
|
157 |
+
def __str__(self) -> str:
|
158 |
+
return self.value
|
159 |
+
def __repr__(self) -> str:
|
160 |
+
return "Const({:})".format(repr(self.value))
|
161 |
+
# }}} class Const #
|
162 |
+
|
163 |
+
class Choice(Item):
|
164 |
+
# class Choice {{{ #
|
165 |
+
def __init__(self, *items: Iterable[Item]):
|
166 |
+
super(Choice, self).__init__()
|
167 |
+
|
168 |
+
self._items: List[Item] = list(
|
169 |
+
filter( lambda itm: itm is not Nil
|
170 |
+
, items
|
171 |
+
)
|
172 |
+
)
|
173 |
+
self._regex: str = "(?:" + "|".join(map(lambda itm: itm.regex, self._items)) + ")"
|
174 |
+
|
175 |
+
self._rng: np.random.Generator = np.random.default_rng()
|
176 |
+
|
177 |
+
def instantiate(self) -> str:
|
178 |
+
if len(self._items)==0:
|
179 |
+
return ""
|
180 |
+
return self._items[self._rng.integers(len(self._items))].instantiate()
|
181 |
+
|
182 |
+
@property
|
183 |
+
def regex(self) -> str:
|
184 |
+
return self._regex
|
185 |
+
|
186 |
+
@classmethod
|
187 |
+
def fromItem(cls, item: Item):
|
188 |
+
if isinstance(item, Concat):
|
189 |
+
return cls(*item)
|
190 |
+
else:
|
191 |
+
return cls(item)
|
192 |
+
|
193 |
+
def get_targets(self) -> List[str]:
|
194 |
+
return list( itertools.chain.from_iterable(
|
195 |
+
map( lambda itm: itm.get_targets()
|
196 |
+
, self._items
|
197 |
+
)
|
198 |
+
)
|
199 |
+
)
|
200 |
+
|
201 |
+
def implement(self, targets: Iterator[str]):
|
202 |
+
for itm in self._items:
|
203 |
+
itm.implement(targets)
|
204 |
+
|
205 |
+
def __str__(self) -> str:
|
206 |
+
return "({:})".format(
|
207 |
+
"/".join( map( str
|
208 |
+
, self._items
|
209 |
+
)
|
210 |
+
)
|
211 |
+
)
|
212 |
+
def __repr__(self) -> str:
|
213 |
+
return "Choice({:})".format(
|
214 |
+
", ".join( map( repr
|
215 |
+
, self._items
|
216 |
+
)
|
217 |
+
)
|
218 |
+
)
|
219 |
+
# }}} class Choice #
|
220 |
+
|
221 |
+
class Optional(Item):
|
222 |
+
# class Optional {{{ #
|
223 |
+
def __init__(self, item: Union[Item, str]):
|
224 |
+
super(Optional, self).__init__()
|
225 |
+
|
226 |
+
if isinstance(item, str):
|
227 |
+
item = Const(item)
|
228 |
+
self._item: Item = item
|
229 |
+
self._regex = "(?:" + self._item.regex + ")?"
|
230 |
+
|
231 |
+
self._rng: np.random.Generator = np.random.default_rng()
|
232 |
+
|
233 |
+
def instantiate(self) -> str:
|
234 |
+
return self._item.instantiate() if self._rng.random()<0.5 else ""
|
235 |
+
|
236 |
+
@property
|
237 |
+
def regex(self) -> str:
|
238 |
+
return self._regex
|
239 |
+
|
240 |
+
def get_targets(self) -> List[str]:
|
241 |
+
return self._item.get_targets()
|
242 |
+
|
243 |
+
def implement(self, targets: Iterator[str]):
|
244 |
+
self._item.implement(targets)
|
245 |
+
|
246 |
+
def __str__(self) -> str:
|
247 |
+
return "[" + str(self._item) + "]"
|
248 |
+
def __repr__(self) -> str:
|
249 |
+
return "Optional(" + repr(self._item) + ")"
|
250 |
+
# }}} class Optional #
|
251 |
+
|
252 |
+
class Target(Item):
|
253 |
+
# class Target {{{ #
|
254 |
+
def __init__(self, pattern: str):
|
255 |
+
super(Target, self).__init__()
|
256 |
+
|
257 |
+
self._pattern: str = pattern
|
258 |
+
self._value: str = ""
|
259 |
+
|
260 |
+
def instantiate(self) -> str:
|
261 |
+
return self._value
|
262 |
+
|
263 |
+
@property
|
264 |
+
def regex(self) -> str:
|
265 |
+
return "(.+)"
|
266 |
+
|
267 |
+
def get_targets(self) -> List[str]:
|
268 |
+
return [self._pattern]
|
269 |
+
|
270 |
+
def implement(self, targets: Iterator[str]):
|
271 |
+
try:
|
272 |
+
value = next(targets)
|
273 |
+
self._value = value
|
274 |
+
except StopIteration:
|
275 |
+
pass
|
276 |
+
|
277 |
+
def __str__(self) -> str:
|
278 |
+
return "{" + self._pattern + "}"
|
279 |
+
def __repr__(self) -> str:
|
280 |
+
return "Target(" + repr(self._pattern) + ")"
|
281 |
+
# }}} class Target #
|
282 |
+
|
283 |
+
def read_plain(pattern: str) -> Tuple[Union[Const, type(Nil)], str]:
|
284 |
+
# function read_plain {{{ #
|
285 |
+
plain = "".join(
|
286 |
+
itertools.takewhile( lambda ch: ch not in { "(", "/", ")"
|
287 |
+
, "[", "]"
|
288 |
+
, "{", "}"
|
289 |
+
}
|
290 |
+
, pattern
|
291 |
+
)
|
292 |
+
)
|
293 |
+
return Const(plain) if len(plain)>0 else Nil\
|
294 |
+
, pattern[len(plain):]
|
295 |
+
# }}} function read_plain #
|
296 |
+
|
297 |
+
def read_until(stop: str, pattern: str) -> Tuple[str, str]:
|
298 |
+
# function read_until {{{ #
|
299 |
+
"""
|
300 |
+
Args:
|
301 |
+
stop: char
|
302 |
+
pattern: str
|
303 |
+
|
304 |
+
Return:
|
305 |
+
- str as the output
|
306 |
+
- str as the remaining
|
307 |
+
"""
|
308 |
+
|
309 |
+
plain = "".join(
|
310 |
+
itertools.takewhile( lambda ch: ch!=stop
|
311 |
+
, pattern
|
312 |
+
)
|
313 |
+
)
|
314 |
+
return plain, pattern[len(plain):]
|
315 |
+
# }}} function read_until #
|
316 |
+
|
317 |
+
def read_while(while_char: str, pattern: str) -> Tuple[List[Item], str]:
|
318 |
+
# function read_while {{{ #
|
319 |
+
"""
|
320 |
+
Args:
|
321 |
+
while_char: char
|
322 |
+
pattern: str
|
323 |
+
|
324 |
+
Return:
|
325 |
+
- list of Item
|
326 |
+
- str
|
327 |
+
"""
|
328 |
+
|
329 |
+
(item, char), remaining = read_item(pattern)
|
330 |
+
items = [item]
|
331 |
+
while char==while_char:
|
332 |
+
(item, char), remaining = read_item(remaining)
|
333 |
+
items.append(item)
|
334 |
+
return items, remaining
|
335 |
+
# }}} function read_while #
|
336 |
+
|
337 |
+
def read_item(pattern: str) -> Tuple[ Tuple [ Item
|
338 |
+
, str
|
339 |
+
]
|
340 |
+
, str
|
341 |
+
]:
|
342 |
+
# function read_item {{{ #
|
343 |
+
"""
|
344 |
+
Args:
|
345 |
+
pattern: str
|
346 |
+
|
347 |
+
Return:
|
348 |
+
- tuple like (Item, char)
|
349 |
+
- str
|
350 |
+
"""
|
351 |
+
|
352 |
+
prelude, remaining = read_plain(pattern)
|
353 |
+
if len(remaining)==0:
|
354 |
+
return (prelude, "$"), ""
|
355 |
+
|
356 |
+
head, tail = remaining[0], remaining[1:]
|
357 |
+
if head=="(":
|
358 |
+
choices, remaining = read_while("/", tail)
|
359 |
+
(others, end), remaining = read_item(remaining)
|
360 |
+
return ( prelude\
|
361 |
+
+ Choice(*choices)\
|
362 |
+
+ others\
|
363 |
+
, end
|
364 |
+
)\
|
365 |
+
, remaining
|
366 |
+
elif head=="/":
|
367 |
+
return (prelude, "/")\
|
368 |
+
, tail
|
369 |
+
elif head==")":
|
370 |
+
return (prelude, ")")\
|
371 |
+
, tail
|
372 |
+
elif head=="[":
|
373 |
+
(option, _), remaining = read_item(tail)
|
374 |
+
(others, end), remaining = read_item(remaining)
|
375 |
+
return ( prelude\
|
376 |
+
+ Optional(option)\
|
377 |
+
+ others\
|
378 |
+
, end
|
379 |
+
)\
|
380 |
+
, remaining
|
381 |
+
elif head=="]":
|
382 |
+
return (prelude, "]")\
|
383 |
+
, tail
|
384 |
+
elif head=="{":
|
385 |
+
target, remaining = read_until("}", tail)
|
386 |
+
(others, end), remaining = read_item(remaining[1:])
|
387 |
+
return ( prelude\
|
388 |
+
+ Target(target)\
|
389 |
+
+ others\
|
390 |
+
, end
|
391 |
+
)\
|
392 |
+
, remaining
|
393 |
+
# }}} function read_item #
|
394 |
+
|
395 |
+
def parse_pattern(pattern: str) -> Item:
|
396 |
+
(item, end), remaining = read_item(pattern)
|
397 |
+
assert len(remaining)==0 and end=="$"
|
398 |
+
return item
|
instruction_rewriting/target_handlers.py
ADDED
@@ -0,0 +1,355 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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k.corpus import stopwords
|
5 |
+
import nltk
|
6 |
+
#import random
|
7 |
+
import re
|
8 |
+
from typing import Pattern, List, Dict, Tuple
|
9 |
+
from typing import Optional
|
10 |
+
import json
|
11 |
+
import numpy as np
|
12 |
+
|
13 |
+
from . import sentence_pattern
|
14 |
+
|
15 |
+
import logging
|
16 |
+
|
17 |
+
logger = logging.getLogger("rewriting")
|
18 |
+
|
19 |
+
def match_target(target: str, phrase: str) -> bool:
|
20 |
+
"""
|
21 |
+
Args:
|
22 |
+
target: str as the target pattern, possible targets:
|
23 |
+
+ v.
|
24 |
+
+ v.ing
|
25 |
+
+ who
|
26 |
+
+ categ
|
27 |
+
+ kw
|
28 |
+
+ article
|
29 |
+
phrase: str as the candidate
|
30 |
+
|
31 |
+
Returns:
|
32 |
+
bool
|
33 |
+
"""
|
34 |
+
|
35 |
+
if not ( target.startswith("<")\
|
36 |
+
and target.endswith(">...")\
|
37 |
+
):
|
38 |
+
return False
|
39 |
+
pos = target[1:-4]
|
40 |
+
if pos=="v." or pos=="v.ing":
|
41 |
+
return judge_verb(pos, phrase)
|
42 |
+
return True
|
43 |
+
|
44 |
+
def transform_target(target: str, phrase: str, **kargs) -> str:
|
45 |
+
"""
|
46 |
+
Args:
|
47 |
+
target: str as the target pattern, possible targets:
|
48 |
+
+ v.
|
49 |
+
+ v.ing
|
50 |
+
+ who
|
51 |
+
+ categ
|
52 |
+
+ kw
|
53 |
+
+ article
|
54 |
+
phrase: str as the candidate
|
55 |
+
kargs: dict like {str: something}
|
56 |
+
|
57 |
+
Returns:
|
58 |
+
str as the transformed phrase
|
59 |
+
"""
|
60 |
+
|
61 |
+
if not ( target.startswith("<")\
|
62 |
+
and target.endswith(">...")\
|
63 |
+
):
|
64 |
+
return phrase
|
65 |
+
pos = target[1:-4]
|
66 |
+
if pos=="v.":
|
67 |
+
return to_infinitive(phrase)
|
68 |
+
if pos=="v.ing":
|
69 |
+
return to_vbg(phrase)
|
70 |
+
if pos=="kw":
|
71 |
+
return extract_keywords(phrase, **kargs)
|
72 |
+
if pos=="who":
|
73 |
+
return drop_titles(phrase, **kargs)
|
74 |
+
return phrase
|
75 |
+
|
76 |
+
def judge_verb(pos: str, phrase: str) -> bool:
|
77 |
+
# function judge_verb {{{ #
|
78 |
+
"""
|
79 |
+
Judges if the first word of `phrase` is a verb infinitive or a present
|
80 |
+
participle.
|
81 |
+
|
82 |
+
Args:
|
83 |
+
pos: str, "v." or "v.ing"
|
84 |
+
phrase: str
|
85 |
+
|
86 |
+
Returns:
|
87 |
+
bool
|
88 |
+
"""
|
89 |
+
|
90 |
+
tokens = nltk.word_tokenize(phrase)
|
91 |
+
pos_tags = nltk.pos_tag(tokens)
|
92 |
+
return pos=="v." and pos_tags[0][1]=="VB"\
|
93 |
+
or pos=="v.ing" and pos_tags[0][1]=="VBG"
|
94 |
+
|
95 |
+
#head = phrase.split(maxsplit=1)[0]
|
96 |
+
#lemmas = lemminflect.getLemma(head, upos="VERB", lemmatize_oov=False)
|
97 |
+
#if len(lemmas)==0:
|
98 |
+
#return False
|
99 |
+
#
|
100 |
+
#if pos=="v.":
|
101 |
+
#return lemmas[0]==head
|
102 |
+
#elif pos=="v.ing":
|
103 |
+
#ing = lemminflect.getInflect(lemmas[0], tag="VBG", inflect_oov=False)
|
104 |
+
#return ing==head
|
105 |
+
# }}} function judge_verb #
|
106 |
+
|
107 |
+
def to_infinitive(phrase: str) -> str:
|
108 |
+
head, tail = phrase.split(maxsplit=1)
|
109 |
+
return lemminflect.getLemma(head, upos="VERB")[0]\
|
110 |
+
+ " "\
|
111 |
+
+ tail
|
112 |
+
|
113 |
+
def to_vbg(phrase: str) -> str:
|
114 |
+
head, tail = phrase.split(maxsplit=1)
|
115 |
+
return lemminflect.getInflection(head, tag="VBG")[0]\
|
116 |
+
+ " "\
|
117 |
+
+ tail
|
118 |
+
|
119 |
+
def extract_keywords( phrase: str
|
120 |
+
, rng: np.random.Generator = np.random.default_rng()
|
121 |
+
) -> str:
|
122 |
+
# function extract_keywords {{{ #
|
123 |
+
tokens = nltk.word_tokenize(phrase[1:-1])
|
124 |
+
pos_tags = nltk.pos_tag(tokens)
|
125 |
+
|
126 |
+
keywords = map(lambda kwd: (kwd[0].lower(), kwd[1]), pos_tags)
|
127 |
+
keywords = list( filter( lambda kwd: ( kwd[1].startswith("NN")\
|
128 |
+
or kwd[1].startswith("JJ")\
|
129 |
+
or kwd[1].startswith("VB")
|
130 |
+
)\
|
131 |
+
and kwd[0] not in stopwords.words()
|
132 |
+
, keywords
|
133 |
+
)
|
134 |
+
)
|
135 |
+
noun_keywords = list( filter( lambda kwd: not kwd[1].startswith("VB")
|
136 |
+
, keywords
|
137 |
+
)
|
138 |
+
)
|
139 |
+
if len(noun_keywords)!=0:
|
140 |
+
keywords = noun_keywords
|
141 |
+
keywords = list(map(lambda kwd: "\"{:}\"".format(kwd[0]), keywords))
|
142 |
+
|
143 |
+
sampled_keywords = list( filter( lambda _: rng.random()<0.3
|
144 |
+
, keywords
|
145 |
+
)
|
146 |
+
)
|
147 |
+
if len(sampled_keywords)==0:
|
148 |
+
sampled_keywords = [keywords[rng.integers(len(keywords))]]
|
149 |
+
return ", ".join(sampled_keywords)
|
150 |
+
# }}} function extract_keywords #
|
151 |
+
|
152 |
+
def drop_titles( phrase: str
|
153 |
+
, rng: np.random.Generator = np.random.default_rng()
|
154 |
+
) -> str:
|
155 |
+
# function drop_titles {{{ #
|
156 |
+
titles = phrase.split(", ")
|
157 |
+
sampled_titles = list( filter( lambda _: rng.random()<0.3
|
158 |
+
, titles[1:]
|
159 |
+
)
|
160 |
+
)
|
161 |
+
return ", ".join([titles[0]] + sampled_titles)
|
162 |
+
# }}} function drop_titles #
|
163 |
+
|
164 |
+
def parse_file(file_name: str, with_regex: bool = False)\
|
165 |
+
-> Tuple[ List[sentence_pattern.Item]
|
166 |
+
, Optional[List[Pattern[str]]]
|
167 |
+
]:
|
168 |
+
with open(file_name) as f:
|
169 |
+
item_list = list( map( sentence_pattern.parse_pattern
|
170 |
+
, f.read().splitlines()
|
171 |
+
)
|
172 |
+
)
|
173 |
+
regex_list = list( map( lambda itm: re.compile(itm.regex)
|
174 |
+
, item_list
|
175 |
+
)
|
176 |
+
) if with_regex else None
|
177 |
+
return item_list, regex_list
|
178 |
+
|
179 |
+
class TransformerSet:
|
180 |
+
"""
|
181 |
+
Sentences requiring transformation:
|
182 |
+
1. search in command and instruction
|
183 |
+
2. categ in command and instruction
|
184 |
+
3. author in command and instruction
|
185 |
+
4. article in command and instruction (Different)
|
186 |
+
5. other sentences
|
187 |
+
"""
|
188 |
+
|
189 |
+
def __init__( self
|
190 |
+
, search_pattern_file: str
|
191 |
+
, article_pattern_file: str
|
192 |
+
, article_command_pattern_file: str
|
193 |
+
, categ_pattern_file: str
|
194 |
+
, author_pattern_file: str
|
195 |
+
, doccano_file: str
|
196 |
+
, rng: np.random.Generator
|
197 |
+
):
|
198 |
+
# method __init__ {{{ #
|
199 |
+
"""
|
200 |
+
Args:
|
201 |
+
search_pattern_file: str
|
202 |
+
article_pattern_file: str
|
203 |
+
article_command_pattern_file: str
|
204 |
+
categ_pattern_file: str
|
205 |
+
author_pattern_file: str
|
206 |
+
doccano_file: str as the path to the json file exported by doccano
|
207 |
+
rng: np.random.Generator
|
208 |
+
"""
|
209 |
+
|
210 |
+
self._search_template_lib: List[sentence_pattern.Item]
|
211 |
+
self._article_template_lib: List[sentence_pattern.Item]
|
212 |
+
self._article_command_template_lib: List[sentence_pattern.Item]
|
213 |
+
self._categ_template_lib: List[sentence_pattern.Item]
|
214 |
+
self._author_template_lib: List[sentence_pattern.Item]
|
215 |
+
|
216 |
+
self._search_template_regex: List[Pattern[str]]
|
217 |
+
#self._article_template_regex: List[Pattern[str]]
|
218 |
+
#self._article_command_template_regex: List[Pattern[str]]
|
219 |
+
#self._categ_template_regex: List[Pattern[str]]
|
220 |
+
#self._author_template_regex: List[Pattern[str]]
|
221 |
+
|
222 |
+
self._search_template_lib, self._search_template_regex =\
|
223 |
+
parse_file(search_pattern_file, with_regex=True)
|
224 |
+
self._article_template_lib, _ = parse_file(article_pattern_file)
|
225 |
+
self._article_command_template_lib, _ = parse_file(article_command_pattern_file)
|
226 |
+
self._categ_template_lib, _ = parse_file(categ_pattern_file)
|
227 |
+
self._author_template_lib, _ = parse_file(author_pattern_file)
|
228 |
+
|
229 |
+
self._annotation_dict: Dict[str, List[str]] = {}
|
230 |
+
with open(doccano_file) as f:
|
231 |
+
doccano_dict = json.load(f)
|
232 |
+
for anntt in doccano_dict:
|
233 |
+
self._annotation_dict[anntt["text"]] = [anntt["text"]] + anntt["label"]
|
234 |
+
|
235 |
+
self._rng: np.random.Generator = rng
|
236 |
+
# }}} method __init__ #
|
237 |
+
|
238 |
+
def transform(self, sentence: str, environment="instruction") -> str:
|
239 |
+
# method `transform` {{{ #
|
240 |
+
"""
|
241 |
+
Args:
|
242 |
+
sentence: str
|
243 |
+
environment: str, "instruction" or "command"
|
244 |
+
|
245 |
+
Returns:
|
246 |
+
str
|
247 |
+
"""
|
248 |
+
|
249 |
+
logger.debug("Starting transform: %s", sentence)
|
250 |
+
|
251 |
+
has_leading_then = sentence.startswith("Then, ")
|
252 |
+
if has_leading_then:
|
253 |
+
sentence = sentence[6].upper() + sentence[7:]
|
254 |
+
|
255 |
+
if sentence.startswith("Search an article"):
|
256 |
+
transformed = self._transform_search(sentence)
|
257 |
+
elif sentence.startswith("Access the article"):
|
258 |
+
transformed = self._transform_article(sentence, environment)
|
259 |
+
elif sentence.startswith("Access the page"):
|
260 |
+
transformed = self._transform_categ(sentence)
|
261 |
+
elif sentence.startswith("Check the author"):
|
262 |
+
transformed = self._transform_author(sentence)
|
263 |
+
|
264 |
+
elif sentence in self._annotation_dict:
|
265 |
+
candidates = self._annotation_dict[sentence]
|
266 |
+
random_index = self._rng.integers(len(candidates))
|
267 |
+
transformed = candidates[random_index]
|
268 |
+
else:
|
269 |
+
transformed = sentence
|
270 |
+
|
271 |
+
if has_leading_then:
|
272 |
+
transformed = "Then, " + transformed[0].lower() + transformed[1:]
|
273 |
+
|
274 |
+
logger.debug("Transformation result: %s", transformed)
|
275 |
+
|
276 |
+
return transformed
|
277 |
+
# }}} method `transform` #
|
278 |
+
|
279 |
+
def _transform_search(self, sentence: str) -> str:
|
280 |
+
# method _transform_search {{{ #
|
281 |
+
if sentence in self._annotation_dict:
|
282 |
+
nb_candidates = len(self._annotation_dict[sentence])
|
283 |
+
weights = np.full((nb_candidates,), 2)
|
284 |
+
weights[0] = 1
|
285 |
+
weights = weights/np.sum(weights)
|
286 |
+
random_index = self._rng.choice( nb_candidates
|
287 |
+
, p=weights
|
288 |
+
)
|
289 |
+
sentence = self._annotation_dict[sentence][random_index]
|
290 |
+
|
291 |
+
template = None
|
292 |
+
target_str = None
|
293 |
+
for tpl, rgx in zip(self._search_template_lib, self._search_template_regex):
|
294 |
+
match_ = rgx.match(sentence)
|
295 |
+
if match_ is not None:
|
296 |
+
template = tpl
|
297 |
+
target_str = match_.group(1)
|
298 |
+
break
|
299 |
+
if template is None:
|
300 |
+
return sentence
|
301 |
+
|
302 |
+
target_pattern = template.get_targets()
|
303 |
+
if not match_target(target_pattern[0], target_str):
|
304 |
+
return sentence
|
305 |
+
|
306 |
+
return self._apply_new_template(target_str, self._search_template_lib)
|
307 |
+
# }}} method _transform_search #
|
308 |
+
|
309 |
+
def _transform_article(self, sentence: str, environment: str) -> str:
|
310 |
+
# method _transform_article {{{ #
|
311 |
+
"""
|
312 |
+
Args:
|
313 |
+
sentence: str
|
314 |
+
environment: str, "instruction" or "command", indicates different
|
315 |
+
target template library
|
316 |
+
|
317 |
+
Returns:
|
318 |
+
str
|
319 |
+
"""
|
320 |
+
|
321 |
+
assert sentence.startswith("Access the article \"")\
|
322 |
+
and sentence.endswith("\"")
|
323 |
+
target_str = sentence[19:]
|
324 |
+
|
325 |
+
target_template_library = self._article_template_lib\
|
326 |
+
if environment=="instruction"\
|
327 |
+
else self._article_command_template_lib
|
328 |
+
|
329 |
+
return self._apply_new_template(target_str, target_template_library)
|
330 |
+
# }}} method _transform_article #
|
331 |
+
|
332 |
+
def _transform_categ(self, sentence: str) -> str:
|
333 |
+
assert sentence.startswith("Access the page of category ")
|
334 |
+
target_str = sentence[28:]
|
335 |
+
return self._apply_new_template(target_str, self._categ_template_lib)
|
336 |
+
def _transform_author(self, sentence: str) -> str:
|
337 |
+
assert sentence.startswith("Check the author page of ")\
|
338 |
+
and sentence.endswith(".")
|
339 |
+
target_str = sentence[25:-1]
|
340 |
+
return self._apply_new_template(target_str, self._author_template_lib)
|
341 |
+
|
342 |
+
def _apply_new_template( self
|
343 |
+
, target_str: str
|
344 |
+
, template_library: List[sentence_pattern.Item]
|
345 |
+
) -> str:
|
346 |
+
# method _apply_new_template {{{ #
|
347 |
+
new_template_index = self._rng.integers(len(template_library))
|
348 |
+
new_template = template_library[new_template_index]
|
349 |
+
#print(new_template)
|
350 |
+
#print(repr(new_template))
|
351 |
+
target_pattern = new_template.get_targets()
|
352 |
+
target_str = transform_target(target_pattern[0], target_str, rng=self._rng)
|
353 |
+
new_template.implement(iter([target_str]))
|
354 |
+
return new_template.instantiate()
|
355 |
+
# }}} method _apply_new_template #
|
replay_url.py
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
from mitmproxy import http
|
2 |
from mitmproxy import ctx
|
3 |
import os.path
|
|
|
1 |
+
# Created by Danyang Zhang @X-Lance
|
2 |
+
|
3 |
from mitmproxy import http
|
4 |
from mitmproxy import ctx
|
5 |
import os.path
|