title | emoji | colorFrom | colorTo | sdk | sdk_version | app_file | pinned |
---|---|---|---|---|---|---|---|
Sentzi |
😄 |
blue |
yellow |
streamlit |
1.26.0 |
app.py |
false |
Warning
This repository has been archived and will not receive any further updates or support.
sentzi_test_screencast.mp4
A fun 🥳 project made to demonstrate the practical application of sentiment analysis
This is a demo app made using Streamlit
Library ( the best Python library for creating beautiful web apps )
The sentiment analysis is achieved using Textblob
To run the application locally
- (Optional) Create a
venv
(sentzi-venv) and activate it using
$ py -m venv sentzi-venv
$ sentzi-venv\Scripts\Activate.ps1 (for windows powershell)
(or )
sentzi-venv\Scripts\activate.bat (for windows cmd)
(or )
source bin/activate (for unix or linux)
- Install the dependencies using
$ pip install -r requirements.txt
- Make sure the project structure is similar to this
- Head to
root
dir and create a.env
with the following code
DEV_EMAIL_ID=an_emailID_to_use_for_email_bot
DEV_PASS=password_of_that_emailID
- Everything is ready ! Run the
streamlit
app using
$ streamlit run app.py
and enjoy 😎 !
You can test the application locally using the test\sentzi-test.py
CLI tool .
sentzi-test.py
is an extension of the sentzi project made primarily to test the sentzi backend modules .
Using '-with' option to get setiment of a text and saving it as 'json' file . '-o "show"' is default .
test-simple-text.mp4
Using '-with' option to get setiment from a text file . Here logging is disabled .
test-from-file.mp4
Using '-with' option to get setiment from an external dataset . Here output is hidden.
test-ext-1.mp4
Using '-with' option to get setiment from an external dataset . Here 12 reviews are retrieved from the dataset
test-ext-2.mp4
There are many other things you can do with 'sentzi-test.py' 😮
Using 'sentzi-test.py' to check the version of 'sentzi'
show-version.mp4
Obtaining the link to this repository and reading the 'README' file using the 'readMd.py' script in 'test_utils'
show-repo-link-open.mp4
Opening another github readme file using 'readMd.py'