Inspired by A.R. Siders' R Script from this ResearchGate question
Based on dpapathanasiou's example script for pdfminer
Takes Zotero .CSV Article collections and creates Gephi-compatible files for Graph Edges and Nodes based on citations
- Let A be a set of known articles
- For any a in A, let title_a be its title, and text_a be its text content
- For some x in A and y in A, x!=y:
- cites(x,y) is true if title_y appears in text_x
For the above to work, we do some text normalization (removing puncutation, whitespace, special characters) and assume that the title_y would only appear in text_x if it appears in the references section...
- Export list of articles as .csv from Zotero, (articles should have File attachments)
- Run
analyze_papers.py zotero_file.csv
- Script should produce have two files: Edges_titles.csv and Nodes_titles.csv in
- Load them into Gephi with "Load Spreadsheet"
python 2.7 pdfminer