File size: 43,800 Bytes
3edb646
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/home/chenyufan/anaconda3/envs/openchemie/lib/python3.10/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
      "  from .autonotebook import tqdm as notebook_tqdm\n",
      "/home/chenyufan/anaconda3/envs/openchemie/lib/python3.10/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.\n",
      "  warnings.warn(\n",
      "/home/chenyufan/anaconda3/envs/openchemie/lib/python3.10/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=ResNet50_Weights.IMAGENET1K_V1`. You can also use `weights=ResNet50_Weights.DEFAULT` to get the most up-to-date weights.\n",
      "  warnings.warn(msg)\n",
      "/home/chenyufan/anaconda3/envs/openchemie/lib/python3.10/site-packages/torch/functional.py:512: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:3587.)\n",
      "  return _VF.meshgrid(tensors, **kwargs)  # type: ignore[attr-defined]\n",
      "Using CPU. Note: This module is much faster with a GPU.\n",
      "Using CPU. Note: This module is much faster with a GPU.\n",
      "Using CPU. Note: This module is much faster with a GPU.\n",
      "Using CPU. Note: This module is much faster with a GPU.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "tool_calls:[ChatCompletionMessageToolCall(id='call_2UKpohzEX3jid2f0RgsAfDYF', function=Function(arguments='{\"image_path\":\"path/to/reaction_image.png\"}', name='process_reaction_image_with_table_R_group'), type='function')]\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/home/chenyufan/anaconda3/envs/openchemie/lib/python3.10/site-packages/torch/utils/checkpoint.py:464: UserWarning: torch.utils.checkpoint: the use_reentrant parameter should be passed explicitly. In version 2.4 we will raise an exception if use_reentrant is not passed. use_reentrant=False is recommended, but if you need to preserve the current default behavior, you can pass use_reentrant=True. Refer to docs for more details on the differences between the two variants.\n",
      "  warnings.warn(\n",
      "/home/chenyufan/anaconda3/envs/openchemie/lib/python3.10/site-packages/torch/utils/checkpoint.py:91: UserWarning: None of the inputs have requires_grad=True. Gradients will be None\n",
      "  warnings.warn(\n",
      "Config of the encoder: <class 'transformers.models.bert.modeling_bert.BertModel'> is overwritten by shared encoder config: BertConfig {\n",
      "  \"attention_probs_dropout_prob\": 0.1,\n",
      "  \"classifier_dropout\": null,\n",
      "  \"hidden_act\": \"gelu\",\n",
      "  \"hidden_dropout_prob\": 0.1,\n",
      "  \"hidden_size\": 256,\n",
      "  \"initializer_range\": 0.02,\n",
      "  \"intermediate_size\": 1024,\n",
      "  \"layer_norm_eps\": 1e-12,\n",
      "  \"max_position_embeddings\": 1764,\n",
      "  \"model_type\": \"bert\",\n",
      "  \"num_attention_heads\": 4,\n",
      "  \"num_hidden_layers\": 4,\n",
      "  \"pad_token_id\": 0,\n",
      "  \"position_embedding_type\": \"absolute\",\n",
      "  \"transformers_version\": \"4.47.0\",\n",
      "  \"type_vocab_size\": 2,\n",
      "  \"use_cache\": true,\n",
      "  \"vocab_size\": 2094\n",
      "}\n",
      "\n",
      "Config of the decoder: <class 'transformers.models.bert.modeling_bert.BertLMHeadModel'> is overwritten by shared decoder config: BertConfig {\n",
      "  \"add_cross_attention\": true,\n",
      "  \"attention_probs_dropout_prob\": 0.1,\n",
      "  \"classifier_dropout\": null,\n",
      "  \"hidden_act\": \"gelu\",\n",
      "  \"hidden_dropout_prob\": 0.1,\n",
      "  \"hidden_size\": 256,\n",
      "  \"initializer_range\": 0.02,\n",
      "  \"intermediate_size\": 1024,\n",
      "  \"is_decoder\": true,\n",
      "  \"layer_norm_eps\": 1e-12,\n",
      "  \"max_position_embeddings\": 1764,\n",
      "  \"model_type\": \"bert\",\n",
      "  \"num_attention_heads\": 4,\n",
      "  \"num_hidden_layers\": 4,\n",
      "  \"pad_token_id\": 0,\n",
      "  \"position_embedding_type\": \"absolute\",\n",
      "  \"transformers_version\": \"4.47.0\",\n",
      "  \"type_vocab_size\": 2,\n",
      "  \"use_cache\": true,\n",
      "  \"vocab_size\": 2094\n",
      "}\n",
      "\n",
      "Using CPU. Note: This module is much faster with a GPU.\n",
      "/home/chenyufan/anaconda3/envs/openchemie/lib/python3.10/site-packages/transformers/generation/configuration_utils.py:818: UserWarning: `return_dict_in_generate` is NOT set to `True`, but `output_hidden_states` is. When `return_dict_in_generate` is not `True`, `output_hidden_states` is ignored.\n",
      "  warnings.warn(\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "txt_R_group_agent_output:{'reactions': [{'reaction_id': '0_1', 'reactants': [{'smiles': '[1*]C#CC(=O)C[2*]', 'symbols': ['[R1]', 'C', 'C', 'C', 'O', 'C', '[R2]']}, {'smiles': '[3*]C(=O)/C(C#N)=C/[4*]', 'symbols': ['C', '[R4]', 'C', '[CN]', 'C', '[R3]', 'O']}], 'conditions': [{'text': 'DABCO (100 mol %)'}, {'text': 'ethylene glycol/toluene = 2:1, 60 °C'}], 'products': [{'smiles': '[1*]/C1=C/C(=O)C([2*])C([4*])/C(C#N)=C(/[3*])O1', 'symbols': ['C', '[R4]', 'C', '[CN]', 'C', '[R3]', 'O', 'C', '[R1]', 'C', 'C', 'O', 'C', '[R2]']}], 'additional_info': []}, {'reaction_id': '1_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'symbols': ['[Ph]', 'C', 'C', 'C', 'O', 'C', '[H]']}, {'smiles': 'N#CC(=Cc1ccc(Br)cc1)C(=O)c1ccccc1', 'symbols': ['C', '[4-BrC6H4]', 'C', '[CN]', 'C', '[Ph]', 'O']}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '24 h'}, {'role': 'yield', 'text': '78%'}], 'products': [{'smiles': '[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccc(Br)cc1', 'symbols': ['C', '[4-BrC6H4]', 'C', '[CN]', 'C', '[Ph]', 'O', 'C', '[Ph]', 'C', 'C', 'O', 'C', '[H]']}], 'additional_info': [{'entry': 1, 'yield': '78%'}]}, {'reaction_id': '2_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'symbols': ['[Ph]', 'C', 'C', 'C', 'O', 'C', '[H]']}, {'smiles': 'N#CC(=Cc1cccc(Br)c1)C(=O)c1ccccc1', 'symbols': ['C', '[3-BrC6H4]', 'C', '[CN]', 'C', '[Ph]', 'O']}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '24 h'}, {'role': 'yield', 'text': '67%'}], 'products': [{'smiles': '[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1cccc(Br)c1', 'symbols': ['C', '[3-BrC6H4]', 'C', '[CN]', 'C', '[Ph]', 'O', 'C', '[Ph]', 'C', 'C', 'O', 'C', '[H]']}], 'additional_info': [{'entry': 2, 'yield': '67%'}]}, {'reaction_id': '3_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'symbols': ['[Ph]', 'C', 'C', 'C', 'O', 'C', '[H]']}, {'smiles': 'N#CC(=Cc1ccccc1Br)C(=O)c1ccccc1', 'symbols': ['C', '[2-BrC6H4]', 'C', '[CN]', 'C', '[Ph]', 'O']}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '24 h'}, {'role': 'yield', 'text': '78%'}], 'products': [{'smiles': '[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccccc1Br', 'symbols': ['C', '[2-BrC6H4]', 'C', '[CN]', 'C', '[Ph]', 'O', 'C', '[Ph]', 'C', 'C', 'O', 'C', '[H]']}], 'additional_info': [{'entry': 3, 'yield': '78%'}]}, {'reaction_id': '4_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'symbols': ['[Ph]', 'C', 'C', 'C', 'O', 'C', '[H]']}, {'smiles': 'Cc1ccc(C=C(C#N)C(=O)c2ccccc2)cc1', 'symbols': ['C', '[4-MeC6H4]', 'C', '[CN]', 'C', '[Ph]', 'O']}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '48 h'}, {'role': 'yield', 'text': '51%'}], 'products': [{'smiles': '[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccc(C)cc1', 'symbols': ['C', '[4-MeC6H4]', 'C', '[CN]', 'C', '[Ph]', 'O', 'C', '[Ph]', 'C', 'C', 'O', 'C', '[H]']}], 'additional_info': [{'entry': 4, 'yield': '51%'}]}, {'reaction_id': '5_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'symbols': ['[Ph]', 'C', 'C', 'C', 'O', 'C', '[H]']}, {'smiles': 'Cc1cccc(C=C(C#N)C(=O)c2ccccc2)c1', 'symbols': ['C', '[3-MeC6H4]', 'C', '[CN]', 'C', '[Ph]', 'O']}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '48 h'}, {'role': 'yield', 'text': '49%'}], 'products': [{'smiles': '[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1cccc(C)c1', 'symbols': ['C', '[3-MeC6H4]', 'C', '[CN]', 'C', '[Ph]', 'O', 'C', '[Ph]', 'C', 'C', 'O', 'C', '[H]']}], 'additional_info': [{'entry': 5, 'yield': '49%'}]}, {'reaction_id': '6_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'symbols': ['[Ph]', 'C', 'C', 'C', 'O', 'C', '[H]']}, {'smiles': 'Cc1ccccc1C=C(C#N)C(=O)c1ccccc1', 'symbols': ['C', '[2-MeC6H4]', 'C', '[CN]', 'C', '[Ph]', 'O']}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '48 h'}, {'role': 'yield', 'text': '69%'}], 'products': [{'smiles': '[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccccc1C', 'symbols': ['C', '[2-MeC6H4]', 'C', '[CN]', 'C', '[Ph]', 'O', 'C', '[Ph]', 'C', 'C', 'O', 'C', '[H]']}], 'additional_info': [{'entry': 6, 'yield': '69%'}]}, {'reaction_id': '7_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'symbols': ['[Ph]', 'C', 'C', 'C', 'O', 'C', '[H]']}, {'smiles': '<invalid>', 'symbols': ['C', '[C6H5]', 'C', '[CN]', 'C', '[Ph]', 'O']}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '20 h'}, {'role': 'yield', 'text': '60%'}], 'products': [{'smiles': '<invalid>', 'symbols': ['C', '[C6H5]', 'C', '[CN]', 'C', '[Ph]', 'O', 'C', '[Ph]', 'C', 'C', 'O', 'C', '[H]']}], 'additional_info': [{'entry': 7, 'yield': '60%'}]}, {'reaction_id': '8_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'symbols': ['[Ph]', 'C', 'C', 'C', 'O', 'C', '[H]']}, {'smiles': 'N#CC(=Cc1ccc(Cl)cc1)C(=O)c1ccccc1', 'symbols': ['C', '[4-ClC6H4]', 'C', '[CN]', 'C', '[Ph]', 'O']}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '12 h'}, {'role': 'yield', 'text': '76%'}], 'products': [{'smiles': '[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccc(Cl)cc1', 'symbols': ['C', '[4-ClC6H4]', 'C', '[CN]', 'C', '[Ph]', 'O', 'C', '[Ph]', 'C', 'C', 'O', 'C', '[H]']}], 'additional_info': [{'entry': 8, 'yield': '76%'}]}, {'reaction_id': '9_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'symbols': ['[Ph]', 'C', 'C', 'C', 'O', 'C', '[H]']}, {'smiles': 'N#CC(=Cc1ccc(F)cc1)C(=O)c1ccccc1', 'symbols': ['C', '[4-FC6H4]', 'C', '[CN]', 'C', '[Ph]', 'O']}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '12 h'}, {'role': 'yield', 'text': '59%'}], 'products': [{'smiles': '[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccc(F)cc1', 'symbols': ['C', '[4-FC6H4]', 'C', '[CN]', 'C', '[Ph]', 'O', 'C', '[Ph]', 'C', 'C', 'O', 'C', '[H]']}], 'additional_info': [{'entry': 9, 'yield': '59%'}]}, {'reaction_id': '10_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'symbols': ['[Ph]', 'C', 'C', 'C', 'O', 'C', '[H]']}, {'smiles': 'N#CC(=Cc1ccc(CO)cc1)C(=O)c1ccccc1', 'symbols': ['C', '[4-MeOC6H4]', 'C', '[CN]', 'C', '[Ph]', 'O']}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '48 h'}, {'role': 'yield', 'text': '36%'}], 'products': [{'smiles': '[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccc(CO)cc1', 'symbols': ['C', '[4-MeOC6H4]', 'C', '[CN]', 'C', '[Ph]', 'O', 'C', '[Ph]', 'C', 'C', 'O', 'C', '[H]']}], 'additional_info': [{'entry': 10, 'yield': '36%'}]}, {'reaction_id': '11_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'symbols': ['[Ph]', 'C', 'C', 'C', 'O', 'C', '[H]']}, {'smiles': 'N#CC(=Cc1ccc(Cl)cc1Cl)C(=O)c1ccccc1', 'symbols': ['C', '[2,4-Cl2C6H3]', 'C', '[CN]', 'C', '[Ph]', 'O']}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '48 h'}, {'role': 'yield', 'text': '66%'}], 'products': [{'smiles': '[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccc(Cl)cc1Cl', 'symbols': ['C', '[2,4-Cl2C6H3]', 'C', '[CN]', 'C', '[Ph]', 'O', 'C', '[Ph]', 'C', 'C', 'O', 'C', '[H]']}], 'additional_info': [{'entry': 11, 'yield': '66%'}]}]}\n",
      "{'reactions': [{'reaction_id': '0_1', 'reactants': [{'smiles': '[1*]C#CC(=O)C[2*]', 'label': '1'}, {'smiles': '[3*]C(=O)/C(C#N)=C/[4*]', 'label': '2'}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}], 'products': [{'smiles': '[1*]/C1=C/C(=O)C([2*])C([4*])/C(C#N)=C(/[3*])O1', 'label': '3'}], 'additional_info': []}, {'reaction_id': '1_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'label': '1a'}, {'smiles': 'N#CC(=Cc1ccc(Br)cc1)C(=O)c1ccccc1', 'label': '2a'}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '24 h'}, {'role': 'yield', 'text': '78%'}], 'products': [{'smiles': '[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccc(Br)cc1', 'label': '3a'}], 'additional_info': [{'entry': 1, 'yield': '78%'}]}, {'reaction_id': '2_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'label': '1b'}, {'smiles': 'N#CC(=Cc1cccc(Br)c1)C(=O)c1ccccc1', 'label': '2b'}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '24 h'}, {'role': 'yield', 'text': '67%'}], 'products': [{'smiles': '[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1cccc(Br)c1', 'label': '3b'}], 'additional_info': [{'entry': 2, 'yield': '67%'}]}, {'reaction_id': '3_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'label': '1c'}, {'smiles': 'N#CC(=Cc1ccccc1Br)C(=O)c1ccccc1', 'label': '2c'}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '24 h'}, {'role': 'yield', 'text': '78%'}], 'products': [{'smiles': '[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccccc1Br', 'label': '3c'}], 'additional_info': [{'entry': 3, 'yield': '78%'}]}, {'reaction_id': '4_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'label': '1d'}, {'smiles': 'Cc1ccc(C=C(C#N)C(=O)c2ccccc2)cc1', 'label': '2d'}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '48 h'}, {'role': 'yield', 'text': '51%'}], 'products': [{'smiles': '[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccc(C)cc1', 'label': '3d'}], 'additional_info': [{'entry': 4, 'yield': '51%'}]}, {'reaction_id': '5_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'label': '1e'}, {'smiles': 'Cc1cccc(C=C(C#N)C(=O)c2ccccc2)c1', 'label': '2e'}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '48 h'}, {'role': 'yield', 'text': '49%'}], 'products': [{'smiles': '[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1cccc(C)c1', 'label': '3e'}], 'additional_info': [{'entry': 5, 'yield': '49%'}]}, {'reaction_id': '6_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'label': '1f'}, {'smiles': 'Cc1ccccc1C=C(C#N)C(=O)c1ccccc1', 'label': '2f'}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '48 h'}, {'role': 'yield', 'text': '69%'}], 'products': [{'smiles': '[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccccc1C', 'label': '3f'}], 'additional_info': [{'entry': 6, 'yield': '69%'}]}, {'reaction_id': '7_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'label': '1g'}, {'smiles': '<invalid>', 'label': '2g'}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '20 h'}, {'role': 'yield', 'text': '60%'}], 'products': [{'smiles': '<invalid>', 'label': '3g'}], 'additional_info': [{'entry': 7, 'yield': '60%'}]}, {'reaction_id': '8_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'label': '1h'}, {'smiles': 'N#CC(=Cc1ccc(Cl)cc1)C(=O)c1ccccc1', 'label': '2h'}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '12 h'}, {'role': 'yield', 'text': '76%'}], 'products': [{'smiles': '[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccc(Cl)cc1', 'label': '3h'}], 'additional_info': [{'entry': 8, 'yield': '76%'}]}, {'reaction_id': '9_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'label': '1i'}, {'smiles': 'N#CC(=Cc1ccc(F)cc1)C(=O)c1ccccc1', 'label': '2i'}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '12 h'}, {'role': 'yield', 'text': '59%'}], 'products': [{'smiles': '[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccc(F)cc1', 'label': '3i'}], 'additional_info': [{'entry': 9, 'yield': '59%'}]}, {'reaction_id': '10_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'label': '1j'}, {'smiles': 'N#CC(=Cc1ccc(CO)cc1)C(=O)c1ccccc1', 'label': '2j'}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '48 h'}, {'role': 'yield', 'text': '36%'}], 'products': [{'smiles': '[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccc(CO)cc1', 'label': '3j'}], 'additional_info': [{'entry': 10, 'yield': '36%'}]}, {'reaction_id': '11_1', 'reactants': [{'smiles': '[H]CC(=O)C#Cc1ccccc1', 'label': '1k'}, {'smiles': 'N#CC(=Cc1ccc(Cl)cc1Cl)C(=O)c1ccccc1', 'label': '2k'}], 'conditions': [{'role': 'reagent', 'text': 'DABCO (100 mol %)'}, {'role': 'solvent', 'text': 'ethylene glycol/toluene = 2:1'}, {'role': 'temperature', 'text': '60 °C'}, {'role': 'time', 'text': '48 h'}, {'role': 'yield', 'text': '66%'}], 'products': [{'smiles': '[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccc(Cl)cc1Cl', 'label': '3k'}], 'additional_info': [{'entry': 11, 'yield': '66%'}]}]}\n",
      "{\n",
      "    \"reactions\": [\n",
      "        {\n",
      "            \"reaction_id\": \"0_1\",\n",
      "            \"reactants\": [\n",
      "                {\n",
      "                    \"smiles\": \"[1*]C#CC(=O)C[2*]\",\n",
      "                    \"label\": \"1\"\n",
      "                },\n",
      "                {\n",
      "                    \"smiles\": \"[3*]C(=O)/C(C#N)=C/[4*]\",\n",
      "                    \"label\": \"2\"\n",
      "                }\n",
      "            ],\n",
      "            \"conditions\": [\n",
      "                {\n",
      "                    \"role\": \"reagent\",\n",
      "                    \"text\": \"DABCO (100 mol %)\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"solvent\",\n",
      "                    \"text\": \"ethylene glycol/toluene = 2:1\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"temperature\",\n",
      "                    \"text\": \"60 \\u00b0C\"\n",
      "                }\n",
      "            ],\n",
      "            \"products\": [\n",
      "                {\n",
      "                    \"smiles\": \"[1*]/C1=C/C(=O)C([2*])C([4*])/C(C#N)=C(/[3*])O1\",\n",
      "                    \"label\": \"3\"\n",
      "                }\n",
      "            ],\n",
      "            \"additional_info\": []\n",
      "        },\n",
      "        {\n",
      "            \"reaction_id\": \"1_1\",\n",
      "            \"reactants\": [\n",
      "                {\n",
      "                    \"smiles\": \"[H]CC(=O)C#Cc1ccccc1\",\n",
      "                    \"label\": \"1a\"\n",
      "                },\n",
      "                {\n",
      "                    \"smiles\": \"N#CC(=Cc1ccc(Br)cc1)C(=O)c1ccccc1\",\n",
      "                    \"label\": \"2a\"\n",
      "                }\n",
      "            ],\n",
      "            \"conditions\": [\n",
      "                {\n",
      "                    \"role\": \"reagent\",\n",
      "                    \"text\": \"DABCO (100 mol %)\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"solvent\",\n",
      "                    \"text\": \"ethylene glycol/toluene = 2:1\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"temperature\",\n",
      "                    \"text\": \"60 \\u00b0C\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"time\",\n",
      "                    \"text\": \"24 h\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"yield\",\n",
      "                    \"text\": \"78%\"\n",
      "                }\n",
      "            ],\n",
      "            \"products\": [\n",
      "                {\n",
      "                    \"smiles\": \"[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccc(Br)cc1\",\n",
      "                    \"label\": \"3a\"\n",
      "                }\n",
      "            ],\n",
      "            \"additional_info\": [\n",
      "                {\n",
      "                    \"entry\": 1,\n",
      "                    \"yield\": \"78%\"\n",
      "                }\n",
      "            ]\n",
      "        },\n",
      "        {\n",
      "            \"reaction_id\": \"2_1\",\n",
      "            \"reactants\": [\n",
      "                {\n",
      "                    \"smiles\": \"[H]CC(=O)C#Cc1ccccc1\",\n",
      "                    \"label\": \"1b\"\n",
      "                },\n",
      "                {\n",
      "                    \"smiles\": \"N#CC(=Cc1cccc(Br)c1)C(=O)c1ccccc1\",\n",
      "                    \"label\": \"2b\"\n",
      "                }\n",
      "            ],\n",
      "            \"conditions\": [\n",
      "                {\n",
      "                    \"role\": \"reagent\",\n",
      "                    \"text\": \"DABCO (100 mol %)\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"solvent\",\n",
      "                    \"text\": \"ethylene glycol/toluene = 2:1\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"temperature\",\n",
      "                    \"text\": \"60 \\u00b0C\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"time\",\n",
      "                    \"text\": \"24 h\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"yield\",\n",
      "                    \"text\": \"67%\"\n",
      "                }\n",
      "            ],\n",
      "            \"products\": [\n",
      "                {\n",
      "                    \"smiles\": \"[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1cccc(Br)c1\",\n",
      "                    \"label\": \"3b\"\n",
      "                }\n",
      "            ],\n",
      "            \"additional_info\": [\n",
      "                {\n",
      "                    \"entry\": 2,\n",
      "                    \"yield\": \"67%\"\n",
      "                }\n",
      "            ]\n",
      "        },\n",
      "        {\n",
      "            \"reaction_id\": \"3_1\",\n",
      "            \"reactants\": [\n",
      "                {\n",
      "                    \"smiles\": \"[H]CC(=O)C#Cc1ccccc1\",\n",
      "                    \"label\": \"1c\"\n",
      "                },\n",
      "                {\n",
      "                    \"smiles\": \"N#CC(=Cc1ccccc1Br)C(=O)c1ccccc1\",\n",
      "                    \"label\": \"2c\"\n",
      "                }\n",
      "            ],\n",
      "            \"conditions\": [\n",
      "                {\n",
      "                    \"role\": \"reagent\",\n",
      "                    \"text\": \"DABCO (100 mol %)\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"solvent\",\n",
      "                    \"text\": \"ethylene glycol/toluene = 2:1\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"temperature\",\n",
      "                    \"text\": \"60 \\u00b0C\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"time\",\n",
      "                    \"text\": \"24 h\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"yield\",\n",
      "                    \"text\": \"78%\"\n",
      "                }\n",
      "            ],\n",
      "            \"products\": [\n",
      "                {\n",
      "                    \"smiles\": \"[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccccc1Br\",\n",
      "                    \"label\": \"3c\"\n",
      "                }\n",
      "            ],\n",
      "            \"additional_info\": [\n",
      "                {\n",
      "                    \"entry\": 3,\n",
      "                    \"yield\": \"78%\"\n",
      "                }\n",
      "            ]\n",
      "        },\n",
      "        {\n",
      "            \"reaction_id\": \"4_1\",\n",
      "            \"reactants\": [\n",
      "                {\n",
      "                    \"smiles\": \"[H]CC(=O)C#Cc1ccccc1\",\n",
      "                    \"label\": \"1d\"\n",
      "                },\n",
      "                {\n",
      "                    \"smiles\": \"Cc1ccc(C=C(C#N)C(=O)c2ccccc2)cc1\",\n",
      "                    \"label\": \"2d\"\n",
      "                }\n",
      "            ],\n",
      "            \"conditions\": [\n",
      "                {\n",
      "                    \"role\": \"reagent\",\n",
      "                    \"text\": \"DABCO (100 mol %)\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"solvent\",\n",
      "                    \"text\": \"ethylene glycol/toluene = 2:1\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"temperature\",\n",
      "                    \"text\": \"60 \\u00b0C\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"time\",\n",
      "                    \"text\": \"48 h\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"yield\",\n",
      "                    \"text\": \"51%\"\n",
      "                }\n",
      "            ],\n",
      "            \"products\": [\n",
      "                {\n",
      "                    \"smiles\": \"[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccc(C)cc1\",\n",
      "                    \"label\": \"3d\"\n",
      "                }\n",
      "            ],\n",
      "            \"additional_info\": [\n",
      "                {\n",
      "                    \"entry\": 4,\n",
      "                    \"yield\": \"51%\"\n",
      "                }\n",
      "            ]\n",
      "        },\n",
      "        {\n",
      "            \"reaction_id\": \"5_1\",\n",
      "            \"reactants\": [\n",
      "                {\n",
      "                    \"smiles\": \"[H]CC(=O)C#Cc1ccccc1\",\n",
      "                    \"label\": \"1e\"\n",
      "                },\n",
      "                {\n",
      "                    \"smiles\": \"Cc1cccc(C=C(C#N)C(=O)c2ccccc2)c1\",\n",
      "                    \"label\": \"2e\"\n",
      "                }\n",
      "            ],\n",
      "            \"conditions\": [\n",
      "                {\n",
      "                    \"role\": \"reagent\",\n",
      "                    \"text\": \"DABCO (100 mol %)\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"solvent\",\n",
      "                    \"text\": \"ethylene glycol/toluene = 2:1\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"temperature\",\n",
      "                    \"text\": \"60 \\u00b0C\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"time\",\n",
      "                    \"text\": \"48 h\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"yield\",\n",
      "                    \"text\": \"49%\"\n",
      "                }\n",
      "            ],\n",
      "            \"products\": [\n",
      "                {\n",
      "                    \"smiles\": \"[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1cccc(C)c1\",\n",
      "                    \"label\": \"3e\"\n",
      "                }\n",
      "            ],\n",
      "            \"additional_info\": [\n",
      "                {\n",
      "                    \"entry\": 5,\n",
      "                    \"yield\": \"49%\"\n",
      "                }\n",
      "            ]\n",
      "        },\n",
      "        {\n",
      "            \"reaction_id\": \"6_1\",\n",
      "            \"reactants\": [\n",
      "                {\n",
      "                    \"smiles\": \"[H]CC(=O)C#Cc1ccccc1\",\n",
      "                    \"label\": \"1f\"\n",
      "                },\n",
      "                {\n",
      "                    \"smiles\": \"Cc1ccccc1C=C(C#N)C(=O)c1ccccc1\",\n",
      "                    \"label\": \"2f\"\n",
      "                }\n",
      "            ],\n",
      "            \"conditions\": [\n",
      "                {\n",
      "                    \"role\": \"reagent\",\n",
      "                    \"text\": \"DABCO (100 mol %)\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"solvent\",\n",
      "                    \"text\": \"ethylene glycol/toluene = 2:1\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"temperature\",\n",
      "                    \"text\": \"60 \\u00b0C\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"time\",\n",
      "                    \"text\": \"48 h\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"yield\",\n",
      "                    \"text\": \"69%\"\n",
      "                }\n",
      "            ],\n",
      "            \"products\": [\n",
      "                {\n",
      "                    \"smiles\": \"[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccccc1C\",\n",
      "                    \"label\": \"3f\"\n",
      "                }\n",
      "            ],\n",
      "            \"additional_info\": [\n",
      "                {\n",
      "                    \"entry\": 6,\n",
      "                    \"yield\": \"69%\"\n",
      "                }\n",
      "            ]\n",
      "        },\n",
      "        {\n",
      "            \"reaction_id\": \"7_1\",\n",
      "            \"reactants\": [\n",
      "                {\n",
      "                    \"smiles\": \"[H]CC(=O)C#Cc1ccccc1\",\n",
      "                    \"label\": \"1g\"\n",
      "                },\n",
      "                {\n",
      "                    \"smiles\": \"<invalid>\",\n",
      "                    \"label\": \"2g\"\n",
      "                }\n",
      "            ],\n",
      "            \"conditions\": [\n",
      "                {\n",
      "                    \"role\": \"reagent\",\n",
      "                    \"text\": \"DABCO (100 mol %)\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"solvent\",\n",
      "                    \"text\": \"ethylene glycol/toluene = 2:1\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"temperature\",\n",
      "                    \"text\": \"60 \\u00b0C\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"time\",\n",
      "                    \"text\": \"20 h\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"yield\",\n",
      "                    \"text\": \"60%\"\n",
      "                }\n",
      "            ],\n",
      "            \"products\": [\n",
      "                {\n",
      "                    \"smiles\": \"<invalid>\",\n",
      "                    \"label\": \"3g\"\n",
      "                }\n",
      "            ],\n",
      "            \"additional_info\": [\n",
      "                {\n",
      "                    \"entry\": 7,\n",
      "                    \"yield\": \"60%\"\n",
      "                }\n",
      "            ]\n",
      "        },\n",
      "        {\n",
      "            \"reaction_id\": \"8_1\",\n",
      "            \"reactants\": [\n",
      "                {\n",
      "                    \"smiles\": \"[H]CC(=O)C#Cc1ccccc1\",\n",
      "                    \"label\": \"1h\"\n",
      "                },\n",
      "                {\n",
      "                    \"smiles\": \"N#CC(=Cc1ccc(Cl)cc1)C(=O)c1ccccc1\",\n",
      "                    \"label\": \"2h\"\n",
      "                }\n",
      "            ],\n",
      "            \"conditions\": [\n",
      "                {\n",
      "                    \"role\": \"reagent\",\n",
      "                    \"text\": \"DABCO (100 mol %)\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"solvent\",\n",
      "                    \"text\": \"ethylene glycol/toluene = 2:1\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"temperature\",\n",
      "                    \"text\": \"60 \\u00b0C\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"time\",\n",
      "                    \"text\": \"12 h\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"yield\",\n",
      "                    \"text\": \"76%\"\n",
      "                }\n",
      "            ],\n",
      "            \"products\": [\n",
      "                {\n",
      "                    \"smiles\": \"[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccc(Cl)cc1\",\n",
      "                    \"label\": \"3h\"\n",
      "                }\n",
      "            ],\n",
      "            \"additional_info\": [\n",
      "                {\n",
      "                    \"entry\": 8,\n",
      "                    \"yield\": \"76%\"\n",
      "                }\n",
      "            ]\n",
      "        },\n",
      "        {\n",
      "            \"reaction_id\": \"9_1\",\n",
      "            \"reactants\": [\n",
      "                {\n",
      "                    \"smiles\": \"[H]CC(=O)C#Cc1ccccc1\",\n",
      "                    \"label\": \"1i\"\n",
      "                },\n",
      "                {\n",
      "                    \"smiles\": \"N#CC(=Cc1ccc(F)cc1)C(=O)c1ccccc1\",\n",
      "                    \"label\": \"2i\"\n",
      "                }\n",
      "            ],\n",
      "            \"conditions\": [\n",
      "                {\n",
      "                    \"role\": \"reagent\",\n",
      "                    \"text\": \"DABCO (100 mol %)\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"solvent\",\n",
      "                    \"text\": \"ethylene glycol/toluene = 2:1\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"temperature\",\n",
      "                    \"text\": \"60 \\u00b0C\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"time\",\n",
      "                    \"text\": \"12 h\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"yield\",\n",
      "                    \"text\": \"59%\"\n",
      "                }\n",
      "            ],\n",
      "            \"products\": [\n",
      "                {\n",
      "                    \"smiles\": \"[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccc(F)cc1\",\n",
      "                    \"label\": \"3i\"\n",
      "                }\n",
      "            ],\n",
      "            \"additional_info\": [\n",
      "                {\n",
      "                    \"entry\": 9,\n",
      "                    \"yield\": \"59%\"\n",
      "                }\n",
      "            ]\n",
      "        },\n",
      "        {\n",
      "            \"reaction_id\": \"10_1\",\n",
      "            \"reactants\": [\n",
      "                {\n",
      "                    \"smiles\": \"[H]CC(=O)C#Cc1ccccc1\",\n",
      "                    \"label\": \"1j\"\n",
      "                },\n",
      "                {\n",
      "                    \"smiles\": \"N#CC(=Cc1ccc(CO)cc1)C(=O)c1ccccc1\",\n",
      "                    \"label\": \"2j\"\n",
      "                }\n",
      "            ],\n",
      "            \"conditions\": [\n",
      "                {\n",
      "                    \"role\": \"reagent\",\n",
      "                    \"text\": \"DABCO (100 mol %)\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"solvent\",\n",
      "                    \"text\": \"ethylene glycol/toluene = 2:1\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"temperature\",\n",
      "                    \"text\": \"60 \\u00b0C\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"time\",\n",
      "                    \"text\": \"48 h\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"yield\",\n",
      "                    \"text\": \"36%\"\n",
      "                }\n",
      "            ],\n",
      "            \"products\": [\n",
      "                {\n",
      "                    \"smiles\": \"[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccc(CO)cc1\",\n",
      "                    \"label\": \"3j\"\n",
      "                }\n",
      "            ],\n",
      "            \"additional_info\": [\n",
      "                {\n",
      "                    \"entry\": 10,\n",
      "                    \"yield\": \"36%\"\n",
      "                }\n",
      "            ]\n",
      "        },\n",
      "        {\n",
      "            \"reaction_id\": \"11_1\",\n",
      "            \"reactants\": [\n",
      "                {\n",
      "                    \"smiles\": \"[H]CC(=O)C#Cc1ccccc1\",\n",
      "                    \"label\": \"1k\"\n",
      "                },\n",
      "                {\n",
      "                    \"smiles\": \"N#CC(=Cc1ccc(Cl)cc1Cl)C(=O)c1ccccc1\",\n",
      "                    \"label\": \"2k\"\n",
      "                }\n",
      "            ],\n",
      "            \"conditions\": [\n",
      "                {\n",
      "                    \"role\": \"reagent\",\n",
      "                    \"text\": \"DABCO (100 mol %)\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"solvent\",\n",
      "                    \"text\": \"ethylene glycol/toluene = 2:1\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"temperature\",\n",
      "                    \"text\": \"60 \\u00b0C\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"time\",\n",
      "                    \"text\": \"48 h\"\n",
      "                },\n",
      "                {\n",
      "                    \"role\": \"yield\",\n",
      "                    \"text\": \"66%\"\n",
      "                }\n",
      "            ],\n",
      "            \"products\": [\n",
      "                {\n",
      "                    \"smiles\": \"[H]C1C(=O)/C=C(/c2ccccc2)O/C(c2ccccc2)=C(/C#N)C1c1ccc(Cl)cc1Cl\",\n",
      "                    \"label\": \"3k\"\n",
      "                }\n",
      "            ],\n",
      "            \"additional_info\": [\n",
      "                {\n",
      "                    \"entry\": 11,\n",
      "                    \"yield\": \"66%\"\n",
      "                }\n",
      "            ]\n",
      "        }\n",
      "    ]\n",
      "}\n"
     ]
    }
   ],
   "source": [
    "import json\n",
    "from main import ChemEagle\n",
    "image_path = './examples/img1.png'\n",
    "results = ChemEagle(image_path)\n",
    "print(json.dumps(results, indent=4))"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "openchemie",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.14"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}