Python 3.8
- Link - tested on Python 3.8.11pip
- Link - package installer for Pythonvenv
- Link - Serves files in virtual environment
- Open the command line/terminal on your machine and navigate to this project's top-level directory (i.e. where this file is)
py -3.8 -m venv venv_embed
- create a python3 virtual environment called venv_embed in the current directoryvenv_embed\Scripts\activate.bat
- enters the virtual environment- FROM THIS POINT ON: only use
python
command to invoke interpeter, avoid using global commandpy
!!
- FROM THIS POINT ON: only use
python -m pip install -r requirements.txt
- installs required libraries local to this project environment
python3.8 -m venv venv_embed
/virtualenv --python=python3.8 venv_embed
- create a python3 virtual environment called venv_embedsource venv_embed/bin/activate
- enters the virtual environment- FROM THIS POINT ON: only use
python
command to invoke interpeter, avoid using global commandpython3.8
!!
- FROM THIS POINT ON: only use
brew install gcc
export CC=/usr/local/Cellar/gcc/11.2.0/bin/g++-11
This will be different for different users/systems.export CFLAGS="-Wa,-q"
python -m pip install -r requirements.txt
- installs required libraries local to this project environmentpython -m spacy download en_core_web_sm
python -m nltk.downloader popular
- Configure file paths in
config.py
. Sample data files are provided:data/sample-dataset-sans-embeddings.tsv
- the output file from the scraper module as the input file to compute embeddings.data/sample-dataset-with-embeddings.tsv
- the output file with computed embeddings.
- Run
python embed.py
... deactivate
- exits the virtual environment
vitaLITy was created by Arpit Narechania, Alireza Karduni, Ryan Wesslen, and Emily Wall.
@article{narechania2021vitality,
title={vitaLITy: Promoting Serendipitous Discovery of Academic Literature with Transformers \& Visual Analytics},
author={Narechania, Arpit and Karduni, Alireza and Wesslen, Ryan and Wall, Emily},
journal={IEEE Transactions on Visualization and Computer Graphics},
year={2021},
doi={10.1109/TVCG.2021.3114820},
publisher={IEEE}
}
The software is available under the MIT License.
If you have any questions, feel free to open an issue or contact Arpit Narechania.