1. 是import tools的
2. 关键代码
读取每个paper信息,将相关信息写到相应的csv文件中
“`python
x[‘abstract’] = x[‘abstract’].replace(“\n”, “”)
row = [x[name] for name in singles]
arrrow = [“;”.join(x[name]) for name in arrays]
allrow = row + arrrow
# authorRows = []
#
# for au in x[‘authors’]:
# authorRows.append()
# authors.writerow([au[‘name’]])
authornames = [y[‘name’] for y in x[‘authors’] ]
for ref in x[‘references’]:
references.writerow([x[‘id’], ref])
if ref == x[‘id’]:
refselfCount += 1
papers.writerow(allrow)
for auname in authornames:
authors.writerow([auname])
writes.writerow([auname, x[‘id’]])
“`
3. 没有
4. 有使用
5. configuration options主要是设置足够的存储空间
6. 有使用