File size: 5,358 Bytes
806b94c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
  "task_id": "allformat_step010",
  "task_family": "allformat_nested_steps",
  "step_count": 10,
  "instruction": "Apply the following atomic edits in order: (1) set font color on body paragraph 21 word 22 -> 008000; (2) set font size on cover paragraph 4 word 3 -> 10.0; (3) set bold on table 1 row 3 col 2 paragraph 1 word 1 -> True; (4) set italic on header section 3 default paragraph 1 word 2 -> True; (5) set underline on table-of-contents paragraph 5 word 2 -> True; (6) set font name on formula paragraph 1 word 3 -> Arial; (7) set highlight color on body paragraph 15 word 11 -> green; (8) set table cell background on table 1 row 1 col 3 paragraph 1 word 1 -> FFF2CC; (9) set paragraph alignment on cover paragraph 7 word 1 -> center; (10) set font color on header section 3 default paragraph 1 word 3 -> 008000.",
  "task_instruction": "Apply the following atomic edits in order: (1) set font color on body paragraph 21 word 22 -> 008000; (2) set font size on cover paragraph 4 word 3 -> 10.0; (3) set bold on table 1 row 3 col 2 paragraph 1 word 1 -> True; (4) set italic on header section 3 default paragraph 1 word 2 -> True; (5) set underline on table-of-contents paragraph 5 word 2 -> True; (6) set font name on formula paragraph 1 word 3 -> Arial; (7) set highlight color on body paragraph 15 word 11 -> green; (8) set table cell background on table 1 row 1 col 3 paragraph 1 word 1 -> FFF2CC; (9) set paragraph alignment on cover paragraph 7 word 1 -> center; (10) set font color on header section 3 default paragraph 1 word 3 -> 008000.",
  "docx_path": "/export/home/yuyang/code_project/input/all_format.docx",
  "initial_json": "/export/home/yuyang/code_project/input/all_format.metadata.json",
  "pool_path": "/export/home/yuyang/code_project/tasks/allformat_atomic_pool_100.json",
  "atomic_ops": [
    {
      "op_id": 1,
      "action": "set font color",
      "target_query": {
        "region": "body",
        "paragraph_index": 21,
        "word_index": 22,
        "text": "intent"
      },
      "expected_changes": {
        "font_color_hex": "008000"
      },
      "value": "008000"
    },
    {
      "op_id": 2,
      "action": "set font size",
      "target_query": {
        "region": "cover",
        "paragraph_index": 4,
        "word_index": 3,
        "text": "Wu"
      },
      "expected_changes": {
        "font_size_pt": 10.0
      },
      "value": 10.0
    },
    {
      "op_id": 3,
      "action": "set bold",
      "target_query": {
        "region": "table",
        "paragraph_index": 1,
        "word_index": 1,
        "text": "dd",
        "table_index": 1,
        "row_index": 3,
        "col_index": 2,
        "cell_paragraph_index": 1
      },
      "expected_changes": {
        "bold": true
      },
      "value": true
    },
    {
      "op_id": 4,
      "action": "set italic",
      "target_query": {
        "region": "header",
        "paragraph_index": 1,
        "word_index": 2,
        "text": "report",
        "section_index": 3,
        "hf_type": "default"
      },
      "expected_changes": {
        "italic": true
      },
      "value": true
    },
    {
      "op_id": 5,
      "action": "set underline",
      "target_query": {
        "region": "toc",
        "paragraph_index": 5,
        "word_index": 2,
        "text": "6"
      },
      "expected_changes": {
        "underline": true
      },
      "value": true
    },
    {
      "op_id": 6,
      "action": "set font name",
      "target_query": {
        "region": "formula",
        "paragraph_index": 1,
        "word_index": 3,
        "text": "n"
      },
      "expected_changes": {
        "font_name": "Arial"
      },
      "value": "Arial"
    },
    {
      "op_id": 7,
      "action": "set highlight color",
      "target_query": {
        "region": "body",
        "paragraph_index": 15,
        "word_index": 11,
        "text": "Operations"
      },
      "expected_changes": {
        "highlight_color": "green"
      },
      "value": "green"
    },
    {
      "op_id": 8,
      "action": "set table cell background",
      "target_query": {
        "region": "table",
        "paragraph_index": 1,
        "word_index": 1,
        "text": "C",
        "table_index": 1,
        "row_index": 1,
        "col_index": 3,
        "cell_paragraph_index": 1
      },
      "expected_changes": {
        "cell_background_hex": "FFF2CC"
      },
      "value": "FFF2CC"
    },
    {
      "op_id": 9,
      "action": "set paragraph alignment",
      "target_query": {
        "region": "cover",
        "paragraph_index": 7,
        "word_index": 1,
        "text": "A"
      },
      "expected_changes": {
        "alignment": "center"
      },
      "value": "center"
    },
    {
      "op_id": 10,
      "action": "set font color",
      "target_query": {
        "region": "header",
        "paragraph_index": 1,
        "word_index": 3,
        "text": "of",
        "section_index": 3,
        "hf_type": "default"
      },
      "expected_changes": {
        "font_color_hex": "008000"
      },
      "value": "008000"
    }
  ],
  "evaluation": {
    "mode": "all_ops_must_pass",
    "success_threshold": 1.0
  },
  "target_query": {
    "region": "body",
    "paragraph_index": 21,
    "word_index": 22,
    "text": "intent"
  },
  "expected_changes": {
    "font_color_hex": "008000"
  }
}