Spaces:
Runtime error
Runtime error
Added the test question generator and increased the size of the question bank to 500
Browse files- data/json/test_questions.json +501 -201
- src/data_synthesis/test_question_generator.py +108 -0
data/json/test_questions.json
CHANGED
@@ -1,204 +1,504 @@
|
|
1 |
{
|
2 |
"questions": [
|
3 |
-
"What
|
4 |
-
"
|
5 |
-
"
|
6 |
-
"
|
7 |
-
"What
|
8 |
-
"
|
9 |
-
"
|
10 |
-
"
|
11 |
-
"
|
12 |
-
"What
|
13 |
-
"
|
14 |
-
"
|
15 |
-
"
|
16 |
-
"
|
17 |
-
"What
|
18 |
-
"
|
19 |
-
"
|
20 |
-
"
|
21 |
-
"
|
22 |
-
"What
|
23 |
-
"
|
24 |
-
"
|
25 |
-
"
|
26 |
-
"What
|
27 |
-
"
|
28 |
-
"
|
29 |
-
"What
|
30 |
-
"
|
31 |
-
"
|
32 |
-
"
|
33 |
-
"
|
34 |
-
"
|
35 |
-
"What
|
36 |
-
"
|
37 |
-
"
|
38 |
-
"
|
39 |
-
"
|
40 |
-
"
|
41 |
-
"
|
42 |
-
"
|
43 |
-
"
|
44 |
-
"What
|
45 |
-
"
|
46 |
-
"
|
47 |
-
"What
|
48 |
-
"
|
49 |
-
"
|
50 |
-
"
|
51 |
-
"
|
52 |
-
"
|
53 |
-
"
|
54 |
-
"
|
55 |
-
"
|
56 |
-
"
|
57 |
-
"
|
58 |
-
"
|
59 |
-
"
|
60 |
-
"
|
61 |
-
"
|
62 |
-
"
|
63 |
-
"What
|
64 |
-
"
|
65 |
-
"What
|
66 |
-
"
|
67 |
-
"
|
68 |
-
"
|
69 |
-
"
|
70 |
-
"
|
71 |
-
"
|
72 |
-
"
|
73 |
-
"What
|
74 |
-
"
|
75 |
-
"
|
76 |
-
"
|
77 |
-
"
|
78 |
-
"
|
79 |
-
"
|
80 |
-
"What
|
81 |
-
"
|
82 |
-
"
|
83 |
-
"
|
84 |
-
"
|
85 |
-
"
|
86 |
-
"
|
87 |
-
"
|
88 |
-
"
|
89 |
-
"What
|
90 |
-
"
|
91 |
-
"
|
92 |
-
"
|
93 |
-
"What
|
94 |
-
"
|
95 |
-
"
|
96 |
-
"
|
97 |
-
"
|
98 |
-
"
|
99 |
-
"
|
100 |
-
"
|
101 |
-
"
|
102 |
-
"
|
103 |
-
"What
|
104 |
-
"
|
105 |
-
"
|
106 |
-
"What
|
107 |
-
"
|
108 |
-
"
|
109 |
-
"
|
110 |
-
"What
|
111 |
-
"
|
112 |
-
"
|
113 |
-
"What
|
114 |
-
"
|
115 |
-
"
|
116 |
-
"How
|
117 |
-
"
|
118 |
-
"What
|
119 |
-
"
|
120 |
-
"
|
121 |
-
"What
|
122 |
-
"
|
123 |
-
"
|
124 |
-
"
|
125 |
-
"What
|
126 |
-
"
|
127 |
-
"
|
128 |
-
"
|
129 |
-
"
|
130 |
-
"
|
131 |
-
"
|
132 |
-
"
|
133 |
-
"What
|
134 |
-
"
|
135 |
-
"
|
136 |
-
"
|
137 |
-
"
|
138 |
-
"
|
139 |
-
"
|
140 |
-
"What
|
141 |
-
"
|
142 |
-
"
|
143 |
-
"
|
144 |
-
"
|
145 |
-
"
|
146 |
-
"
|
147 |
-
"
|
148 |
-
"What
|
149 |
-
"
|
150 |
-
"
|
151 |
-
"
|
152 |
-
"
|
153 |
-
"How
|
154 |
-
"
|
155 |
-
"
|
156 |
-
"
|
157 |
-
"
|
158 |
-
"What
|
159 |
-
"
|
160 |
-
"
|
161 |
-
"
|
162 |
-
"
|
163 |
-
"What
|
164 |
-
"
|
165 |
-
"
|
166 |
-
"What
|
167 |
-
"
|
168 |
-
"How
|
169 |
-
"
|
170 |
-
"What
|
171 |
-
"
|
172 |
-
"What
|
173 |
-
"
|
174 |
-
"
|
175 |
-
"
|
176 |
-
"
|
177 |
-
"What
|
178 |
-
"
|
179 |
-
"
|
180 |
-
"What
|
181 |
-
"
|
182 |
-
"
|
183 |
-
"
|
184 |
-
"What
|
185 |
-
"
|
186 |
-
"
|
187 |
-
"
|
188 |
-
"
|
189 |
-
"
|
190 |
-
"
|
191 |
-
"
|
192 |
-
"What
|
193 |
-
"
|
194 |
-
"What
|
195 |
-
"
|
196 |
-
"
|
197 |
-
"
|
198 |
-
"What
|
199 |
-
"
|
200 |
-
"
|
201 |
-
"What
|
202 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
]
|
204 |
-
}
|
|
|
1 |
{
|
2 |
"questions": [
|
3 |
+
"I'm considering buying a new toaster. What should I think about and what models would you recommend?",
|
4 |
+
"What's your best rated toaster?",
|
5 |
+
"What coffee machine would you recommend that has Adjustable cup size and Built-in conical burr grinder?",
|
6 |
+
"What's your best rated coffee machine?",
|
7 |
+
"What coffee machines do you have?",
|
8 |
+
"How much is a the ElectroHome PremiumCook Microwave?",
|
9 |
+
"What features should I think about when buying a coffee machine?",
|
10 |
+
"What vacuum cleaners do you have?",
|
11 |
+
"What can you tell me about ToastMaster Deluxe?",
|
12 |
+
"What's your best rated washing machine?",
|
13 |
+
"What coffee machine would you recommend that has Drip-stop function, Thermal carafe and Minimal waste?",
|
14 |
+
"What can you tell me about SleekDeal Microwave?",
|
15 |
+
"How much is a the ElectroHome Premium Family Iron?",
|
16 |
+
"What's your best rated iron?",
|
17 |
+
"What can you tell me about BudgetCompact Quick Wash?",
|
18 |
+
"What can you tell me about EssentialClean DW300?",
|
19 |
+
"How much is a the ElectroHome EasyClean Microwave?",
|
20 |
+
"What toasters do you have?",
|
21 |
+
"I'm considering buying a new microwave. What should I think about and what models would you recommend?",
|
22 |
+
"What can you tell me about PureClean DW200?",
|
23 |
+
"What coffee machines do you have?",
|
24 |
+
"What coffee machines do you have?",
|
25 |
+
"I'm considering buying a new toaster. What should I think about and what models would you recommend?",
|
26 |
+
"I'm considering buying a new TV. What should I think about and what models would you recommend?",
|
27 |
+
"What toaster would you recommend that has 7 browning settings, auto-eject rack and space-saving?",
|
28 |
+
"Tell me about your dishwashers.",
|
29 |
+
"What can you tell me about SmartSlice?",
|
30 |
+
"What toasters do you have?",
|
31 |
+
"Tell me about your coffee machines.",
|
32 |
+
"What washing machines do you have?",
|
33 |
+
"I'm considering buying a new washing machine. What should I think about and what models would you recommend?",
|
34 |
+
"How much is a the ElectroHome EcoSilent DW1300?",
|
35 |
+
"What washing machine would you recommend that has Fast Spin Speed, Front-load, Fast Spin Speed and Top-load?",
|
36 |
+
"I'm looking for a family TV. What would you recommend?",
|
37 |
+
"Tell me about your microwaves.",
|
38 |
+
"What TVs do you have?",
|
39 |
+
"What features should I think about when buying a iron?",
|
40 |
+
"What can you tell me about QuickWash Eco?",
|
41 |
+
"How much is a the ElectroHome EnergyWise Microwave?",
|
42 |
+
"What dishwasher would you recommend that has Interior lighting, Water-saving technology and Compact size?",
|
43 |
+
"What TVs do you have?",
|
44 |
+
"What's your best rated vacuum cleaner?",
|
45 |
+
"How much is a the ElectroHome GoGreen Compact?",
|
46 |
+
"What food processor would you recommend that has Affordable and versatile, Compact design and Easy storage?",
|
47 |
+
"What electric kettle would you recommend that has Compact Size, Durable Construction and Stainless Steel Design?",
|
48 |
+
"What can you tell me about GoGreen Pro?",
|
49 |
+
"What microwave would you recommend that has Child lock?",
|
50 |
+
"I'm considering buying a new toaster. What should I think about and what models would you recommend?",
|
51 |
+
"What TVs do you have?",
|
52 |
+
"I'm considering buying a new TV. What should I think about and what models would you recommend?",
|
53 |
+
"I'm considering buying a new iron. What should I think about and what models would you recommend?",
|
54 |
+
"How much is a the ElectroHome Economic Espresso Maker?",
|
55 |
+
"What features should I think about when buying a washing machine?",
|
56 |
+
"What coffee machines do you have?",
|
57 |
+
"I'm considering buying a new iron. What should I think about and what models would you recommend?",
|
58 |
+
"What features should I think about when buying a electric kettle?",
|
59 |
+
"Tell me about your TVs.",
|
60 |
+
"What washing machines do you have?",
|
61 |
+
"What toasters do you have?",
|
62 |
+
"What iron would you recommend that has Anti-calcium system, Spray mist function, Steam boost function and Dual voltage?",
|
63 |
+
"What can you tell me about EcoSaver Deluxe?",
|
64 |
+
"What features should I think about when buying a vacuum cleaner?",
|
65 |
+
"I'm considering buying a new TV. What should I think about and what models would you recommend?",
|
66 |
+
"How much is a the ElectroHome PremiumSpin Control?",
|
67 |
+
"Is the WirelessStream W3 a good TV?",
|
68 |
+
"I'm considering buying a new microwave. What should I think about and what models would you recommend?",
|
69 |
+
"What toaster would you recommend that has Multiple toasting modes, space-saving and Multiple toasting modes?",
|
70 |
+
"Is the Premium Iron a good iron?",
|
71 |
+
"What coffee machine would you recommend that has Auto-shutoff and Water filter?",
|
72 |
+
"What features should I think about when buying a dishwasher?",
|
73 |
+
"What vacuum cleaner would you recommend that has Edge cleaning, Extended reach wand and Lightweight and portable?",
|
74 |
+
"What toasters do you have?",
|
75 |
+
"I'm considering buying a new microwave. What should I think about and what models would you recommend?",
|
76 |
+
"What electric kettles do you have?",
|
77 |
+
"What's your best rated coffee machine?",
|
78 |
+
"Is the CompactQuick Wash a good washing machine?",
|
79 |
+
"What can you tell me about Travel Buddy?",
|
80 |
+
"What washing machine would you recommend that has Smart Controls, Top-load, Child Lock and Compact?",
|
81 |
+
"Is the ToastyLite a good toaster?",
|
82 |
+
"What can you tell me about PremiumSlice Pro?",
|
83 |
+
"What features should I think about when buying a vacuum cleaner?",
|
84 |
+
"I'm considering buying a new coffee machine. What should I think about and what models would you recommend?",
|
85 |
+
"What vacuum cleaner would you recommend that has Pet-friendly design, Reusable filter, Allergen trapping and Pet-friendly design?",
|
86 |
+
"I'm looking for a family toaster. What would you recommend?",
|
87 |
+
"How much is a the ElectroHome SilentClean DW600?",
|
88 |
+
"What coffee machines do you have?",
|
89 |
+
"What food processor would you recommend that has Affordable and versatile and Extra-large capacity?",
|
90 |
+
"What's your best rated dishwasher?",
|
91 |
+
"Is the PowerMaster Microwave a good microwave?",
|
92 |
+
"I'm looking for a compact toaster. What would you recommend?",
|
93 |
+
"What irons do you have?",
|
94 |
+
"How much is a the ElectroHome GoGreen Compact?",
|
95 |
+
"I'm looking for a budget vacuum cleaner. What would you recommend?",
|
96 |
+
"What features should I think about when buying a food processor?",
|
97 |
+
"What coffee machines do you have?",
|
98 |
+
"How much is a the ElectroHome MaxPower?",
|
99 |
+
"Is the QuickReach a good vacuum cleaner?",
|
100 |
+
"What can you tell me about FamilyEasy Multiple Programs?",
|
101 |
+
"Is the SmartSense Microwave a good microwave?",
|
102 |
+
"What electric kettle would you recommend that has Tea Infuser?",
|
103 |
+
"What's your best rated toaster?",
|
104 |
+
"I'm looking for a big electric kettle. What would you recommend?",
|
105 |
+
"What can you tell me about EcoChop Lite?",
|
106 |
+
"I'm considering buying a new washing machine. What should I think about and what models would you recommend?",
|
107 |
+
"What features should I think about when buying a iron?",
|
108 |
+
"What features should I think about when buying a TV?",
|
109 |
+
"What's your best rated microwave?",
|
110 |
+
"What can you tell me about ValueSlice Plus?",
|
111 |
+
"How much is a the ElectroHome EcoClean Quick Cycle?",
|
112 |
+
"What can you tell me about BudgetHeat?",
|
113 |
+
"What irons do you have?",
|
114 |
+
"I'm considering buying a new vacuum cleaner. What should I think about and what models would you recommend?",
|
115 |
+
"What features should I think about when buying a electric kettle?",
|
116 |
+
"How much is a the ElectroHome PremiumEase Microwave?",
|
117 |
+
"What can you tell me about BudgetView B4?",
|
118 |
+
"What's your best rated electric kettle?",
|
119 |
+
"Is the PowerClean DW2300 a good dishwasher?",
|
120 |
+
"What vacuum cleaner would you recommend that has Brushroll control, Smart cleaning technology and 10-ft power cord?",
|
121 |
+
"What can you tell me about GlideEase Iron?",
|
122 |
+
"Tell me about your coffee machines.",
|
123 |
+
"What features should I think about when buying a TV?",
|
124 |
+
"I'm considering buying a new food processor. What should I think about and what models would you recommend?",
|
125 |
+
"What dishwashers do you have?",
|
126 |
+
"What vacuum cleaner would you recommend that has Quick charge and Automatic rewind?",
|
127 |
+
"I'm considering buying a new coffee machine. What should I think about and what models would you recommend?",
|
128 |
+
"I'm looking for a budget washing machine. What would you recommend?",
|
129 |
+
"I'm looking for a budget toaster. What would you recommend?",
|
130 |
+
"What features should I think about when buying a electric kettle?",
|
131 |
+
"Tell me about your irons.",
|
132 |
+
"What can you tell me about FamilyFriendly Multiple Programs?",
|
133 |
+
"I'm considering buying a new vacuum cleaner. What should I think about and what models would you recommend?",
|
134 |
+
"How much is a the ElectroHome Family Deluxe?",
|
135 |
+
"I'm considering buying a new food processor. What should I think about and what models would you recommend?",
|
136 |
+
"How much is a the ElectroHome EcoSilent DW1300?",
|
137 |
+
"Is the EconoHeat Microwave a good microwave?",
|
138 |
+
"What vacuum cleaner would you recommend that has Powerful suction and Extra-large dust capacity?",
|
139 |
+
"How much is a the ElectroHome Eco-Friendly Drip Maker?",
|
140 |
+
"What's your best rated washing machine?",
|
141 |
+
"I'm considering buying a new washing machine. What should I think about and what models would you recommend?",
|
142 |
+
"I'm considering buying a new food processor. What should I think about and what models would you recommend?",
|
143 |
+
"Tell me about your coffee machines.",
|
144 |
+
"Tell me about your coffee machines.",
|
145 |
+
"What's your best rated coffee machine?",
|
146 |
+
"What can you tell me about MaxiFamily?",
|
147 |
+
"How much is a the ElectroHome EcoFresh Large Capacity?",
|
148 |
+
"I'm considering buying a new TV. What should I think about and what models would you recommend?",
|
149 |
+
"How much is a the ElectroHome EcoSteamClean?",
|
150 |
+
"What's your best rated electric kettle?",
|
151 |
+
"How much is a the ElectroHome FamilyWave Microwave?",
|
152 |
+
"Tell me about your coffee machines.",
|
153 |
+
"How much is a the ElectroHome Easy-Pour?",
|
154 |
+
"What's your best rated TV?",
|
155 |
+
"Tell me about your washing machines.",
|
156 |
+
"How much is a the ElectroHome PremiumHighSpin Ultra?",
|
157 |
+
"I'm considering buying a new washing machine. What should I think about and what models would you recommend?",
|
158 |
+
"What's your best rated electric kettle?",
|
159 |
+
"What irons do you have?",
|
160 |
+
"What TVs do you have?",
|
161 |
+
"What iron would you recommend that has Adjustable steam settings?",
|
162 |
+
"What irons do you have?",
|
163 |
+
"What TV would you recommend that has 4K HDR?",
|
164 |
+
"What electric kettle would you recommend that has Single-Serve and Auto shut-off?",
|
165 |
+
"Tell me about your dishwashers.",
|
166 |
+
"What can you tell me about FamilySize Plus?",
|
167 |
+
"What's your best rated food processor?",
|
168 |
+
"How much is a the ElectroHome PetClean?",
|
169 |
+
"I'm considering buying a new TV. What should I think about and what models would you recommend?",
|
170 |
+
"What microwave would you recommend that has Smart cooking functions?",
|
171 |
+
"What features should I think about when buying a electric kettle?",
|
172 |
+
"What can you tell me about PetSweep?",
|
173 |
+
"What's your best rated electric kettle?",
|
174 |
+
"What microwaves do you have?",
|
175 |
+
"I'm considering buying a new food processor. What should I think about and what models would you recommend?",
|
176 |
+
"What features should I think about when buying a coffee machine?",
|
177 |
+
"I'm considering buying a new coffee machine. What should I think about and what models would you recommend?",
|
178 |
+
"Tell me about your vacuum cleaners.",
|
179 |
+
"I'm looking for a durable iron. What would you recommend?",
|
180 |
+
"What can you tell me about ProBlend Ultra?",
|
181 |
+
"What features should I think about when buying a TV?",
|
182 |
+
"I'm looking for a family dishwasher. What would you recommend?",
|
183 |
+
"What can you tell me about CompactPro?",
|
184 |
+
"What food processor would you recommend that has 12-speed settings, Pulse function, Various cutting and slicing functions and 8-cup capacity?",
|
185 |
+
"Is the UltraSpin Compact a good washing machine?",
|
186 |
+
"Is the Family Eco Iron a good iron?",
|
187 |
+
"What's your best rated microwave?",
|
188 |
+
"Tell me about your microwaves.",
|
189 |
+
"What microwaves do you have?",
|
190 |
+
"What features should I think about when buying a TV?",
|
191 |
+
"What features should I think about when buying a electric kettle?",
|
192 |
+
"What toaster would you recommend that has professional performance?",
|
193 |
+
"I'm considering buying a new toaster. What should I think about and what models would you recommend?",
|
194 |
+
"I'm considering buying a new dishwasher. What should I think about and what models would you recommend?",
|
195 |
+
"How much is a the ElectroHome PowerBlend Pro?",
|
196 |
+
"What coffee machine would you recommend that has Minimal waste?",
|
197 |
+
"I'm looking for a sleek TV. What would you recommend?",
|
198 |
+
"What toasters do you have?",
|
199 |
+
"What features should I think about when buying a coffee machine?",
|
200 |
+
"What vacuum cleaners do you have?",
|
201 |
+
"What can you tell me about SmartControl Iron?",
|
202 |
+
"What features should I think about when buying a coffee machine?",
|
203 |
+
"How much is a the ElectroHome EcoSlice?",
|
204 |
+
"What TVs do you have?",
|
205 |
+
"I'm looking for a sleek TV. What would you recommend?",
|
206 |
+
"What electric kettle would you recommend that has Easy to Use?",
|
207 |
+
"What features should I think about when buying a iron?",
|
208 |
+
"What's your best rated TV?",
|
209 |
+
"What's your best rated microwave?",
|
210 |
+
"What can you tell me about PremiumUltraSpin?",
|
211 |
+
"How much is a the ElectroHome SleekDeal Microwave?",
|
212 |
+
"What can you tell me about GoGreen Compact?",
|
213 |
+
"Is the EnergySaver Pro a good electric kettle?",
|
214 |
+
"How much is a the ElectroHome PrecisionCrisp?",
|
215 |
+
"What can you tell me about WirelessStream W1?",
|
216 |
+
"Tell me about your dishwashers.",
|
217 |
+
"What washing machine would you recommend that has Wrinkle-Free, Fast Spin Speed, Wool cycle and Top-load?",
|
218 |
+
"What's your best rated dishwasher?",
|
219 |
+
"What can you tell me about SliceMate 3000?",
|
220 |
+
"I'm considering buying a new dishwasher. What should I think about and what models would you recommend?",
|
221 |
+
"What's your best rated toaster?",
|
222 |
+
"What irons do you have?",
|
223 |
+
"What toaster would you recommend that has reheat function?",
|
224 |
+
"What vacuum cleaner would you recommend that has Ergonomic handle, Easy-to-use and Easy to empty dust chamber?",
|
225 |
+
"What's your best rated vacuum cleaner?",
|
226 |
+
"Is the ElectroScreen X3 a good TV?",
|
227 |
+
"What's your best rated vacuum cleaner?",
|
228 |
+
"What features should I think about when buying a dishwasher?",
|
229 |
+
"What's your best rated TV?",
|
230 |
+
"How much is a the ElectroHome EcoProClean DW1000?",
|
231 |
+
"I'm looking for a big dishwasher. What would you recommend?",
|
232 |
+
"I'm considering buying a new TV. What should I think about and what models would you recommend?",
|
233 |
+
"I'm looking for a durable microwave. What would you recommend?",
|
234 |
+
"I'm considering buying a new food processor. What should I think about and what models would you recommend?",
|
235 |
+
"I'm looking for a big dishwasher. What would you recommend?",
|
236 |
+
"I'm considering buying a new food processor. What should I think about and what models would you recommend?",
|
237 |
+
"I'm considering buying a new TV. What should I think about and what models would you recommend?",
|
238 |
+
"What washing machine would you recommend that has Child Lock and Steam function?",
|
239 |
+
"What features should I think about when buying a toaster?",
|
240 |
+
"What dishwashers do you have?",
|
241 |
+
"Is the EcoSteamClean a good washing machine?",
|
242 |
+
"What features should I think about when buying a toaster?",
|
243 |
+
"What electric kettles do you have?",
|
244 |
+
"How much is a the ElectroHome Budget Grind & Brew?",
|
245 |
+
"What food processor would you recommend that has 700-watt motor?",
|
246 |
+
"What washing machine would you recommend that has Affordable, Compact Design and Steam Clean?",
|
247 |
+
"I'm considering buying a new vacuum cleaner. What should I think about and what models would you recommend?",
|
248 |
+
"I'm considering buying a new coffee machine. What should I think about and what models would you recommend?",
|
249 |
+
"I'm considering buying a new microwave. What should I think about and what models would you recommend?",
|
250 |
+
"I'm looking for a big dishwasher. What would you recommend?",
|
251 |
+
"What toaster would you recommend that has self-adjusting slots and cancel function?",
|
252 |
+
"What features should I think about when buying a dishwasher?",
|
253 |
+
"What can you tell me about ValueSlice Plus?",
|
254 |
+
"What features should I think about when buying a microwave?",
|
255 |
+
"What microwaves do you have?",
|
256 |
+
"What coffee machines do you have?",
|
257 |
+
"What's your best rated vacuum cleaner?",
|
258 |
+
"What features should I think about when buying a iron?",
|
259 |
+
"What features should I think about when buying a electric kettle?",
|
260 |
+
"What toaster would you recommend that has variable temperature control, Defrost function, professional performance and removable crumb tray?",
|
261 |
+
"What toasters do you have?",
|
262 |
+
"I'm considering buying a new iron. What should I think about and what models would you recommend?",
|
263 |
+
"Tell me about your microwaves.",
|
264 |
+
"What microwaves do you have?",
|
265 |
+
"What features should I think about when buying a electric kettle?",
|
266 |
+
"What electric kettle would you recommend that has Cordless design and Easy to Use?",
|
267 |
+
"What can you tell me about FamilyWash DW700?",
|
268 |
+
"I'm considering buying a new iron. What should I think about and what models would you recommend?",
|
269 |
+
"I'm considering buying a new washing machine. What should I think about and what models would you recommend?",
|
270 |
+
"Tell me about your TVs.",
|
271 |
+
"What features should I think about when buying a coffee machine?",
|
272 |
+
"Is the PremiumEase Microwave a good microwave?",
|
273 |
+
"What's your best rated iron?",
|
274 |
+
"What features should I think about when buying a TV?",
|
275 |
+
"Tell me about your TVs.",
|
276 |
+
"What features should I think about when buying a TV?",
|
277 |
+
"I'm looking for a durable coffee machine. What would you recommend?",
|
278 |
+
"What features should I think about when buying a toaster?",
|
279 |
+
"How much is a the ElectroHome PetPro?",
|
280 |
+
"How much is a the ElectroHome GoGreen Pro?",
|
281 |
+
"What can you tell me about Travel Buddy?",
|
282 |
+
"I'm looking for a big washing machine. What would you recommend?",
|
283 |
+
"What can you tell me about EcoSlice?",
|
284 |
+
"How much is a the ElectroHome EcoBoil Plus?",
|
285 |
+
"I'm looking for a durable microwave. What would you recommend?",
|
286 |
+
"What features should I think about when buying a washing machine?",
|
287 |
+
"What can you tell me about PremiumCook Microwave?",
|
288 |
+
"What can you tell me about MaxClean?",
|
289 |
+
"What's your best rated coffee machine?",
|
290 |
+
"Tell me about your coffee machines.",
|
291 |
+
"How much is a the ElectroHome CompactBlend 500?",
|
292 |
+
"What's your best rated coffee machine?",
|
293 |
+
"What features should I think about when buying a food processor?",
|
294 |
+
"What coffee machine would you recommend that has Carafe warming plate and Brew strength control?",
|
295 |
+
"I'm looking for a family toaster. What would you recommend?",
|
296 |
+
"What features should I think about when buying a vacuum cleaner?",
|
297 |
+
"What features should I think about when buying a electric kettle?",
|
298 |
+
"Tell me about your microwaves.",
|
299 |
+
"I'm considering buying a new microwave. What should I think about and what models would you recommend?",
|
300 |
+
"I'm looking for a family washing machine. What would you recommend?",
|
301 |
+
"What vacuum cleaner would you recommend that has Washable filters, High-powered motor and Crevice tool?",
|
302 |
+
"Is the Family Eco Iron a good iron?",
|
303 |
+
"Tell me about your vacuum cleaners.",
|
304 |
+
"What's your best rated food processor?",
|
305 |
+
"What's your best rated washing machine?",
|
306 |
+
"How much is a the ElectroHome Travel Buddy?",
|
307 |
+
"How much is a the ElectroHome GlideEase Iron?",
|
308 |
+
"Tell me about your dishwashers.",
|
309 |
+
"What features should I think about when buying a vacuum cleaner?",
|
310 |
+
"What can you tell me about EnergySaver Pro?",
|
311 |
+
"What TV would you recommend that has Screen mirroring, Wi-Fi enabled, Screen mirroring and Ultra HD resolution?",
|
312 |
+
"I'm looking for a big electric kettle. What would you recommend?",
|
313 |
+
"What vacuum cleaners do you have?",
|
314 |
+
"What's your best rated microwave?",
|
315 |
+
"What irons do you have?",
|
316 |
+
"What food processors do you have?",
|
317 |
+
"What iron would you recommend that has Adjustable temperature, Comfortable grip, Adjustable temperature and Quick heating?",
|
318 |
+
"How much is a the ElectroHome SmartHeat Elite?",
|
319 |
+
"Is the Eco Mini Iron a good iron?",
|
320 |
+
"I'm considering buying a new electric kettle. What should I think about and what models would you recommend?",
|
321 |
+
"Is the PowerChop Plus a good food processor?",
|
322 |
+
"Tell me about your irons.",
|
323 |
+
"Tell me about your irons.",
|
324 |
+
"What microwave would you recommend that has Time-saving presets?",
|
325 |
+
"What's your best rated food processor?",
|
326 |
+
"What coffee machine would you recommend that has Small footprint, Pod-compatible, Built-in conical burr grinder and Capsule compatibility?",
|
327 |
+
"Tell me about your irons.",
|
328 |
+
"What coffee machines do you have?",
|
329 |
+
"I'm considering buying a new vacuum cleaner. What should I think about and what models would you recommend?",
|
330 |
+
"What microwave would you recommend that has Easy to clean interior?",
|
331 |
+
"What microwave would you recommend that has Defrost function and Low power consumption?",
|
332 |
+
"How much is a the ElectroHome PowerChop Plus?",
|
333 |
+
"What can you tell me about EcoBake?",
|
334 |
+
"I'm considering buying a new toaster. What should I think about and what models would you recommend?",
|
335 |
+
"What TVs do you have?",
|
336 |
+
"What features should I think about when buying a TV?",
|
337 |
+
"What's your best rated electric kettle?",
|
338 |
+
"What electric kettles do you have?",
|
339 |
+
"Is the SilentClean DW600 a good dishwasher?",
|
340 |
+
"What electric kettle would you recommend that has Drip-Free Spout, Variable Temperature Control, Dual Voltage and Premium Design?",
|
341 |
+
"I'm considering buying a new coffee machine. What should I think about and what models would you recommend?",
|
342 |
+
"Is the StylishPro Microwave a good microwave?",
|
343 |
+
"What's your best rated coffee machine?",
|
344 |
+
"Is the UltraSpin Compact a good washing machine?",
|
345 |
+
"I'm considering buying a new vacuum cleaner. What should I think about and what models would you recommend?",
|
346 |
+
"Tell me about your washing machines.",
|
347 |
+
"What electric kettle would you recommend that has Compact Design?",
|
348 |
+
"How much is a the ElectroHome ElectroVision X1?",
|
349 |
+
"What can you tell me about Portable French Press?",
|
350 |
+
"What's your best rated food processor?",
|
351 |
+
"Is the GlideEase Iron a good iron?",
|
352 |
+
"Is the MiniMax M1 a good TV?",
|
353 |
+
"Tell me about your food processors.",
|
354 |
+
"Tell me about your food processors.",
|
355 |
+
"Is the Family Deluxe a good coffee machine?",
|
356 |
+
"How much is a the ElectroHome WirelessStream W1?",
|
357 |
+
"What features should I think about when buying a toaster?",
|
358 |
+
"I'm looking for a budget vacuum cleaner. What would you recommend?",
|
359 |
+
"I'm considering buying a new toaster. What should I think about and what models would you recommend?",
|
360 |
+
"What features should I think about when buying a TV?",
|
361 |
+
"What microwaves do you have?",
|
362 |
+
"How much is a the ElectroHome SpeedChop Pro?",
|
363 |
+
"What can you tell me about UltraStream S1?",
|
364 |
+
"Is the FamilyEasy Multiple Programs a good washing machine?",
|
365 |
+
"What's your best rated coffee machine?",
|
366 |
+
"I'm looking for a durable food processor. What would you recommend?",
|
367 |
+
"How much is a the ElectroHome FamilyStream F1?",
|
368 |
+
"What food processors do you have?",
|
369 |
+
"How much is a the ElectroHome EcoProClean DW1000?",
|
370 |
+
"What features should I think about when buying a TV?",
|
371 |
+
"How much is a the ElectroHome Travel Iron?",
|
372 |
+
"I'm considering buying a new coffee machine. What should I think about and what models would you recommend?",
|
373 |
+
"What vacuum cleaner would you recommend that has Environmentally friendly and Variable suction control?",
|
374 |
+
"How much is a the ElectroHome UltraSteam Iron?",
|
375 |
+
"What can you tell me about ElectroStream Pro?",
|
376 |
+
"How much is a the ElectroHome EconoHeat Microwave?",
|
377 |
+
"I'm looking for a compact iron. What would you recommend?",
|
378 |
+
"What food processor would you recommend that has Easy assembly?",
|
379 |
+
"I'm looking for a sleek TV. What would you recommend?",
|
380 |
+
"What features should I think about when buying a toaster?",
|
381 |
+
"What can you tell me about SilentClean DW600?",
|
382 |
+
"I'm considering buying a new TV. What should I think about and what models would you recommend?",
|
383 |
+
"What TVs do you have?",
|
384 |
+
"What features should I think about when buying a washing machine?",
|
385 |
+
"I'm considering buying a new washing machine. What should I think about and what models would you recommend?",
|
386 |
+
"I'm looking for a compact toaster. What would you recommend?",
|
387 |
+
"Is the FamilyEasy Multiple Programs a good washing machine?",
|
388 |
+
"What's your best rated TV?",
|
389 |
+
"What microwave would you recommend that has Maximum energy efficiency, Spacious interior, Digital display and Programmable cooking time?",
|
390 |
+
"What microwaves do you have?",
|
391 |
+
"What vacuum cleaner would you recommend that has Powerful suction, Automated cord rewind, Lightweight and portable and Powerful motor?",
|
392 |
+
"What's your best rated dishwasher?",
|
393 |
+
"What's your best rated washing machine?",
|
394 |
+
"Is the PremiumHighSpin Ultra a good washing machine?",
|
395 |
+
"What's your best rated dishwasher?",
|
396 |
+
"I'm looking for a budget dishwasher. What would you recommend?",
|
397 |
+
"What's your best rated washing machine?",
|
398 |
+
"How much is a the ElectroHome Premium Italian Espresso Maker?",
|
399 |
+
"How much is a the ElectroHome EfficientSweep?",
|
400 |
+
"How much is a the ElectroHome CompactPro?",
|
401 |
+
"How much is a the ElectroHome PowerSaver Microwave?",
|
402 |
+
"How much is a the ElectroHome CompactMax C1?",
|
403 |
+
"What can you tell me about CompactSaver Microwave?",
|
404 |
+
"Tell me about your vacuum cleaners.",
|
405 |
+
"I'm looking for a compact food processor. What would you recommend?",
|
406 |
+
"What features should I think about when buying a iron?",
|
407 |
+
"Is the PetSweep a good vacuum cleaner?",
|
408 |
+
"What food processors do you have?",
|
409 |
+
"What microwave would you recommend that has Defrost function, Smart controls and Programmable cooking time?",
|
410 |
+
"I'm looking for a big TV. What would you recommend?",
|
411 |
+
"How much is a the ElectroHome SmartChop Elite?",
|
412 |
+
"What's your best rated food processor?",
|
413 |
+
"I'm looking for a family dishwasher. What would you recommend?",
|
414 |
+
"Is the PremiumSpin Control a good washing machine?",
|
415 |
+
"What microwaves do you have?",
|
416 |
+
"I'm considering buying a new microwave. What should I think about and what models would you recommend?",
|
417 |
+
"I'm looking for a budget toaster. What would you recommend?",
|
418 |
+
"What features should I think about when buying a coffee machine?",
|
419 |
+
"I'm considering buying a new washing machine. What should I think about and what models would you recommend?",
|
420 |
+
"I'm considering buying a new vacuum cleaner. What should I think about and what models would you recommend?",
|
421 |
+
"I'm looking for a durable vacuum cleaner. What would you recommend?",
|
422 |
+
"What features should I think about when buying a microwave?",
|
423 |
+
"I'm considering buying a new toaster. What should I think about and what models would you recommend?",
|
424 |
+
"What can you tell me about GoClean?",
|
425 |
+
"What irons do you have?",
|
426 |
+
"Is the ProWash DW600 a good dishwasher?",
|
427 |
+
"What toasters do you have?",
|
428 |
+
"What can you tell me about BudgetHeat?",
|
429 |
+
"What microwaves do you have?",
|
430 |
+
"How much is a the ElectroHome Family Eco Iron?",
|
431 |
+
"What features should I think about when buying a vacuum cleaner?",
|
432 |
+
"What features should I think about when buying a washing machine?",
|
433 |
+
"I'm looking for a compact iron. What would you recommend?",
|
434 |
+
"Tell me about your vacuum cleaners.",
|
435 |
+
"Tell me about your TVs.",
|
436 |
+
"How much is a the ElectroHome EcoBoil Elite?",
|
437 |
+
"What washing machine would you recommend that has Gentle Wash, Smart Controls, Large capacity and Gentle Wash?",
|
438 |
+
"What toaster would you recommend that has reheat function and 8 browning settings?",
|
439 |
+
"How much is a the ElectroHome EcoMax Microwave?",
|
440 |
+
"How much is a the ElectroHome QuickWash DW1800?",
|
441 |
+
"I'm looking for a sleek vacuum cleaner. What would you recommend?",
|
442 |
+
"I'm looking for a durable vacuum cleaner. What would you recommend?",
|
443 |
+
"I'm considering buying a new microwave. What should I think about and what models would you recommend?",
|
444 |
+
"What washing machine would you recommend that has Anti-vibration technology, Premium Quality and Large capacity?",
|
445 |
+
"I'm looking for a family iron. What would you recommend?",
|
446 |
+
"What features should I think about when buying a electric kettle?",
|
447 |
+
"What can you tell me about Compact Grind & Brew?",
|
448 |
+
"Tell me about your electric kettles.",
|
449 |
+
"How much is a the ElectroHome CompactLite?",
|
450 |
+
"What food processor would you recommend that has Professional-grade performance, Premium build quality, 6-speed settings and BPA-free?",
|
451 |
+
"How much is a the ElectroHome StylishPro Microwave?",
|
452 |
+
"I'm considering buying a new microwave. What should I think about and what models would you recommend?",
|
453 |
+
"What coffee machine would you recommend that has Multiple grind settings and 24-hour timer?",
|
454 |
+
"What toaster would you recommend that has High lift lever, premium performance and Auto-centering bread guides?",
|
455 |
+
"I'm looking for a sleek iron. What would you recommend?",
|
456 |
+
"What vacuum cleaner would you recommend that has Automatic rewind?",
|
457 |
+
"What can you tell me about SmartChop Elite?",
|
458 |
+
"Tell me about your dishwashers.",
|
459 |
+
"What electric kettles do you have?",
|
460 |
+
"Is the ClassicToast a good toaster?",
|
461 |
+
"Tell me about your washing machines.",
|
462 |
+
"Is the Travel Buddy a good coffee machine?",
|
463 |
+
"What's your best rated coffee machine?",
|
464 |
+
"What's your best rated electric kettle?",
|
465 |
+
"What iron would you recommend that has Variable temperature control and Steam boost function?",
|
466 |
+
"What microwaves do you have?",
|
467 |
+
"What features should I think about when buying a TV?",
|
468 |
+
"Is the QuickReach a good vacuum cleaner?",
|
469 |
+
"Tell me about your food processors.",
|
470 |
+
"I'm considering buying a new food processor. What should I think about and what models would you recommend?",
|
471 |
+
"What microwave would you recommend that has Digital display, Stainless steel exterior and Quiet operation?",
|
472 |
+
"What washing machines do you have?",
|
473 |
+
"I'm looking for a durable vacuum cleaner. What would you recommend?",
|
474 |
+
"What's your best rated iron?",
|
475 |
+
"What's your best rated microwave?",
|
476 |
+
"What's your best rated coffee machine?",
|
477 |
+
"I'm considering buying a new TV. What should I think about and what models would you recommend?",
|
478 |
+
"What washing machines do you have?",
|
479 |
+
"How much is a the ElectroHome EcoMax Energy-efficient?",
|
480 |
+
"What iron would you recommend that has Quick heating, Variable steam control, Compact design and Wide soleplate?",
|
481 |
+
"Is the ProTech a good vacuum cleaner?",
|
482 |
+
"Is the PremiumChef Microwave a good microwave?",
|
483 |
+
"I'm considering buying a new vacuum cleaner. What should I think about and what models would you recommend?",
|
484 |
+
"What's your best rated microwave?",
|
485 |
+
"I'm considering buying a new vacuum cleaner. What should I think about and what models would you recommend?",
|
486 |
+
"What can you tell me about BudgetCrust?",
|
487 |
+
"What washing machines do you have?",
|
488 |
+
"Tell me about your food processors.",
|
489 |
+
"What can you tell me about ProSweep?",
|
490 |
+
"I'm considering buying a new toaster. What should I think about and what models would you recommend?",
|
491 |
+
"I'm looking for a durable microwave. What would you recommend?",
|
492 |
+
"Tell me about your toasters.",
|
493 |
+
"What's your best rated vacuum cleaner?",
|
494 |
+
"I'm looking for a budget toaster. What would you recommend?",
|
495 |
+
"What electric kettles do you have?",
|
496 |
+
"What iron would you recommend that has Foldable handle?",
|
497 |
+
"What food processors do you have?",
|
498 |
+
"What features should I think about when buying a iron?",
|
499 |
+
"What microwaves do you have?",
|
500 |
+
"I'm looking for a durable washing machine. What would you recommend?",
|
501 |
+
"What's your best rated vacuum cleaner?",
|
502 |
+
"What features should I think about when buying a toaster?"
|
503 |
]
|
504 |
+
}
|
src/data_synthesis/test_question_generator.py
ADDED
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
Script to generate test questions from the data
|
3 |
+
"""
|
4 |
+
import os
|
5 |
+
import json
|
6 |
+
import sys
|
7 |
+
|
8 |
+
from random import choice, choices, randint
|
9 |
+
from typing import Dict
|
10 |
+
|
11 |
+
from src.common import join_items_comma_and, data_dir
|
12 |
+
from src.datatypes import *
|
13 |
+
|
14 |
+
|
15 |
+
category_key = "#CATEGORY#"
|
16 |
+
product_name_key = "#PRODUCT_NAME#"
|
17 |
+
features_key = "#FEATURE_STRING#"
|
18 |
+
characteristic_key = "#CHARACTERISTIC#"
|
19 |
+
|
20 |
+
|
21 |
+
def get_random_template() -> str:
|
22 |
+
templates = [
|
23 |
+
f"I'm looking for a {characteristic_key} {category_key}. What would you recommend?",
|
24 |
+
f"What features should I think about when buying a {category_key}?",
|
25 |
+
f"What {category_key} would you recommend that has {features_key}?",
|
26 |
+
f"What can you tell me about {product_name_key}?",
|
27 |
+
f"How much is a the ElectroHome {product_name_key}?",
|
28 |
+
f"What's your best rated {category_key}?",
|
29 |
+
f"What {category_key}s do you have?",
|
30 |
+
f"Is the {product_name_key} a good {category_key}?",
|
31 |
+
f"I'm considering buying a new {category_key}. What should I think about and what models would you recommend?",
|
32 |
+
f"Tell me about your {category_key}s."
|
33 |
+
]
|
34 |
+
return choice(templates)
|
35 |
+
|
36 |
+
|
37 |
+
def get_random_values() -> Dict[str, str]:
|
38 |
+
"""
|
39 |
+
Generates a random set of entries for a question
|
40 |
+
"""
|
41 |
+
category: Category = choice(list(Category.all.values()))
|
42 |
+
category_name = category.name[:-1].lower()
|
43 |
+
if category_name == "tv":
|
44 |
+
category_name = "TV"
|
45 |
+
product: Product = choice(category.products)
|
46 |
+
|
47 |
+
features: List[Feature] = choices(category.features, k=randint(1, 4))
|
48 |
+
characteristic: str = choice([
|
49 |
+
"big",
|
50 |
+
"durable",
|
51 |
+
"budget",
|
52 |
+
"family",
|
53 |
+
"compact",
|
54 |
+
"sleek"
|
55 |
+
])
|
56 |
+
return {
|
57 |
+
category_key: category_name,
|
58 |
+
product_name_key: product.name,
|
59 |
+
features_key: join_items_comma_and([f.name for f in features]),
|
60 |
+
characteristic_key: characteristic
|
61 |
+
}
|
62 |
+
|
63 |
+
|
64 |
+
def merge_template_values(template: str, values: Dict[str, str]) -> str:
|
65 |
+
"""
|
66 |
+
Returns a template with the values substituted in
|
67 |
+
"""
|
68 |
+
for k, v in values.items():
|
69 |
+
template = template.replace(k, v)
|
70 |
+
return template
|
71 |
+
|
72 |
+
|
73 |
+
def generate_question() -> str:
|
74 |
+
"""
|
75 |
+
Generate a single random question
|
76 |
+
"""
|
77 |
+
template = get_random_template()
|
78 |
+
values = get_random_values()
|
79 |
+
return merge_template_values(template=template, values=values)
|
80 |
+
|
81 |
+
|
82 |
+
def save_questions_to_json(questions: List[str]) -> None:
|
83 |
+
"""
|
84 |
+
Persist the questions into the file
|
85 |
+
"""
|
86 |
+
data = {'questions': questions}
|
87 |
+
questions_file = os.path.join(data_dir, 'json', 'test_questions.json')
|
88 |
+
with open(questions_file, 'w') as f:
|
89 |
+
json.dump(data, fp=f, indent=2)
|
90 |
+
|
91 |
+
|
92 |
+
def generate_questions(n: int = 100):
|
93 |
+
"""
|
94 |
+
Generate n questions and overwrite the test_questions.json question bank
|
95 |
+
"""
|
96 |
+
DataLoader.load_data()
|
97 |
+
questions = [generate_question() for _ in range(n)]
|
98 |
+
save_questions_to_json(questions=questions)
|
99 |
+
|
100 |
+
|
101 |
+
if __name__ == "__main__":
|
102 |
+
"""
|
103 |
+
Run from the command line with the number of questions to generate
|
104 |
+
"""
|
105 |
+
try:
|
106 |
+
generate_questions(int(sys.argv[1]))
|
107 |
+
except IndexError:
|
108 |
+
generate_questions()
|