File size: 379 Bytes
22f338c
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
### read qa_pairs_all-alpha1b.json
import json

with open('qa_pairs_all-alpha1b.json', 'r') as f:
    data = json.load(f)

with open('qa_pairs_all-alpha1b_2.json', 'r') as f:
    data2 = json.load(f)

### concat and save as qa_pairs_all-alpha1b_3.json
data.extend(data2)
with open('qa_pairs_all-alpha1b-final.json', 'w') as f:
    json.dump(data, f, indent=2, ensure_ascii=False)