### 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) |