A text prediction project based on the ideas that residents of Lexington, Kentucky have about their city's future.
The data used for this project was gathered by CivicLex as part of their 2022 On The Table project.
Download the Main View of the Codes Summed sheet in the OTT Combined Codes base (here) as a CSV file, and store it in the data/ directory (Git will ignore it there).
python -m venv venvsource venv/bin/activatepip install -r requirements.txt
cdinto this repo's root directory- Run
npm install
Run npm run start
This project has been developed with Firebase hosting for the React App. This web app pulls data from a Firebase Realtime Database. That database holds all the n-gram data as output by the R scripts in this repo.
To run and host your own instance of this app your own n-gram model:
- Set up your own Firebase project with hosting and a Realtime Database
- Make a file
src/data/firebaseconfig.jswith your Firebase config variables (seesrc/data/firebaseconfig-example.jsfor the formatting and variables you'll need) - Store your n-gram json data in
data/model.json - Run
node populate_database.jsto send your n-gram data to your Firebase Realtime Database