application_vnd.jupyter.stderr_output_2.png text_plain_output_1.png
def convert_news_text_to_specter_json(news_text_file):
    d = {}
    with open(news_text_file, 'r') as f:
        print('test')
        for i, l in enumerate(f):
            print(l)
            if i == 0:
                d['paper_id'] = l
            elif i == 1:
                d['url'] = l
            elif i == 2:
                d['title'] = l
            elif i == 3:
                d['abstract'] = l
            elif i == 4:
                d['body_text'] = l
    print(d)
convert_news_text_to_specter_json('/kaggle/input/news-test-articles/002.txt')