<jupyter_start><jupyter_text>Iterate through<jupyter_code>qids_iter = iter(questions_json.keys())<jupyter_output><empty_output><jupyter_text>iterate until qid<jupyter_code>input_q = '66669011'
qids_iter = iter(questions_json.keys())
qid = next(qids_iter)
while qid != input_q:
    qid = next(qids_iter)
qid = next(qids_iter)
q = questions_json[qid]
print(qid)
print("==== BASELINE ====")
print("Q: {}".format(q['bl_q']))
print("A: {}".format(q['bl_ans']))
if current_experiment == 'questions_answers/qas_ms_2_pg04.json':
    print("==== MASKED ====")
    print("Q: {}".format(q['mexp_q']))
    print("A: {}".format(q['mexp_ans']))
print("==== EXPERIMENT ====")
print("Q: {}".format(q['exp_q']))
print("A: {}".format(q['exp_ans']))
Image.open("vqa_images/{}".format(q['img_fname']))<jupyter_output>VG_1245789
==== BASELINE ====
Q: ['What', 'is', 'between', 'the', 'man', "@@'", '@@s', 'legs', '@@?']
A: blanket
==== EXPERIMENT ====
Q: ['What', 'is', 'between', 'the', 'girls', 'legs', '@@?']
A: pillow<jupyter_text>Get by QID<jupyter_code>qid = ''
q = question_json[qid]
print(qid)
print("==== BASELINE ====")
print("Q: {}".format(q['bl_q']))
print("A: {}".format(q['bl_ans']))
print("==== EXPERIMENT ====")
print("Q: {}".format(q['exp_q']))
print("A: {}".format(q['exp_ans']))
Image.open("vqa_images/{}".format(q['img_fname']))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.2815033161385409, 'fraction_numerical': 0.013264554163596167, 'mean_word_length': 8.631205673758865, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '489222', 'license': 'MIT', 'n_tokens_mistral': 591, 'n_tokens_neox': 576, 'n_words': 81, 'path': 'Analysis.ipynb', 'repo_name': 'billyang98/UNITER', 'size': '1357'}