zeroth
c4141f4d7d
|
5 years ago | |
---|---|---|
__pycache__ | 6 years ago | |
pandoc | 5 years ago | |
scores | 6 years ago | |
static | 5 years ago | |
templates | 5 years ago | |
.gitignore | 5 years ago | |
README.md | 5 years ago | |
config.py | 6 years ago | |
contextualise.py | 5 years ago | |
contextualise_python2.py | 5 years ago | |
generate_links.py | 5 years ago | |
requirements.txt | 5 years ago | |
textedit.py | 5 years ago | |
wordlist.json | 5 years ago |
README.md
Pushing Scores
The Pushing Scores archival publication
The website was made using Flask, NLTK, Numpy, Pillow, pypandoc, PyPDF2, weasyprint and Python3 and is live at http://pushingscores.deplayer.nl/
How to use the scripts
All of the words on the website have been turned into links. This only needs to be done once, in advance of launching the application. In order to regenerate the links, you must run these two commands in the following order:
python3 textedit.py
python3 generate_links.py
The first script gathers all the files ending in .html, puts them in one single document, and creates wordlist.json, a dictionary that saves the sentences in which every single word appears. The second script goes over the same original files and replaces every word with an appropriate html tag.
Once these two steps have been made, the application can be run using the following command: FLASK_APP=contextualise.py flask run
The generated scores can be found in scores/
The project was developed by Cristina Cochior and Julie Boschat Thorez, as part of Varia.