I wanted to go through the whole process of building a similar tool to Google Ngram Viewer, so I decided to build this small app, that visualises the trends in uni- and bigrams in the main Bulgarian subreddit - r/bulgaria. I downloaded all the data from 2016 to May 2022 using subreddit-comments-dl.
This project was built in Python, almost entirely using Pandas and Plotly Dash.
In order to be able to run this app locally you need to install the requirements first.
- Clone the repo
git clone https://github.com/sakelariev/bg-reddit.git
- Create a new environment (conda or virtualenv)
conda create -n bg-reddit
- Activate new environment
conda activate bg-reddit
- Install all packages from requirements.txt
pip install -r requirements.txt
- Run the app
python application.py
- Access the app
Open this link in your browser - http://127.0.0.1:8050/
Check the examples for ideas on how to use the tool.
Distributed under the CC BY-SA 4.0 License. You are free to:
Share — copy and redistribute the material in any medium or format
Adapt — remix, transform, and build upon the material for any purpose, even commercially.
All you need to do is give appropriate credit.
Ivaylo Sakelariev - @sakelariev