Code and data for A Elebiary, GL Ciampaglia. 2022
This repository contains the notebooks and the scripts required to replicate the paper's results.
The notebook was written in Python 3. A number of dependencies are to be installed before running it. A list of package requirements is provided. The simplest method is to run a package manager such as pip or conda. It is recommended that all dependencies are installed in a separate Python environment.
The best way to do so is to use the Miniconda, which is a small bootstrap version of the largest Anaconda Python distribution. Miniconda is available for most major operative systems (Windows, Linux, MacOS)
- Download Miniconda from here: https://conda.io/miniconda.html
- Follow the installation instruction for your platform: https://conda.io/projects/conda/en/latest/user-guide/install/index.html
- Clone or download this repository
git clone https://github.com/CSDL-USF/wikihoaxes.git
- Open a terminal and run:
cd wikihoaxes
conda env create --file environment.yml
conda activate wikihoaxes
DATA contains the data required to run plots.ipynb & data.ipynb
To open the notebook, follow the instructions above for installing the Python environment and for obtaining the dataset files. From the location where you downloaded this repository launch Jupyter Notebook with:
conda activate wikihoaxes
jupyter notebook
This will open the notebook interface in your browser. It will show the contents of this repository. Click on the entry called plots.ipynb.
After opening the notebook interface, click on the notebook data.ipynb to regenerate the data used to generate the plots in plots.ipynb
The directory 'scripts' contains python files which are meant to run on Wikimedia's Toolforge server. For information on how to access Toolforge, consult the following link and check their quickstart guide: https://wikitech.wikimedia.org/wiki/Portal:Toolforge