Read-only mirror of https://github.com/epfl-dlab/wikinav-approx — EPFL Data Science & AI Lab (dlab). Issues & pull requests at the source.
  • Jupyter Notebook 79.3%
  • Python 18.8%
  • Shell 1.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2021-12-22 01:21:18 +01:00
code Adding code and data 2021-12-22 01:21:18 +01:00
data Adding code and data 2021-12-22 01:21:18 +01:00
downstream_tasks Adding code and data 2021-12-22 01:21:18 +01:00
README.md Adding code and data 2021-12-22 01:21:18 +01:00

wikinav-approx

Source code for "Approximating Navigation of Readers in Wikipedia Through Public Clickstream Data"

Resources

All the publicly available resources can be downloaded via google drive (no sign-in required). Important Note: It is not currently possible for us to share the navigation sequences (both 'real' and 'synthetic') used in this work with the general public. Consequently, any resources derived from navigation sequences, such as 'navigation embeddings', 'models for next-article prediction', etc. have not been shared publicly. This is to protect the privacy of Wikipedia users and is consistent with our agreement with the Wikimedia Foundation. If, at a later point in time, the Wikimedia Foundation decides to share this data, an updated link to that resource would be provided in this GitHub repository.

  1. To obtain the Wikipedia clickstream dataset, run the crawl_clickstream.sh script present within the data/clickstream directory. This will fetch the compressed clickstream data corresponding to all the 8 language versions used in this study.
  2. To obtain the Wikipedia wikitext (XML) dumps, run the download_dumps.ipynb iPython notebook within the data/xml_dumps directory. This will fetch the compressed XML dumps corresponding to all the 8 language versions used in this study.
  3. To obtain pretrained FastText word embeddings, run the crawl_fasttext_embeddings.sh script present within the data/pretrained_embeddings directory. This will fetch the 300-dimensional aligned word embeddings for all the 8 languages used in this study.
  4. Unzip the graphs.zip file from google drive, which contains the Wikipedia hyperlink graph for the 8 language versions used in this study, into the empty data/graphs directory provided with the code repository.
  5. The relatedness and similarity dataset (based on the WikiSRS benchmark) is present within the data/relatedness directory.
  6. Unzip the topic_prediction_data.zip file from google drive, which contains the topic-labels dataset for the 8 language versions used in this study, into the empty data/topic_prediction directory provided with the code repository.

Code

  1. To obtain the semantic embeddings of Wikipedia articles, run the wiki-article-description_embeddings.ipynb iPython notebook within the code directory. This will compute the Wikipedia article representations based on the text in the first paragraph of an article, for all the 8 language versions used in this study.
  2. The code corresponding to different analyses and downstream tasks performed in this study is also present within the code directory.