![]() |
VOOZH | about |
Python language is widely used for modern machine learning and data analysis. One can detect an image, speech, can even detect an object through Python. For now, we will detect whether the text from the user gives a positive feeling or negative feeling by classifying the text as positive, negative, or neutral. In the code, Vader sentiment analysis and Tkinter are used. Tkinter is a standard GUI library for creating the GUI application.
Required Installations in Anaconda:
conda install -c anaconda tk
Linux users can also use the below command.
sudo apt-get install python3-tk
conda install -c anaconda nltk
Using pip.
pip install nltk
conda install -c conda-forge numpy
Using pip.
pip install numpy
conda install -c anaconda pandas
Using pip.
pip install pandas
conda install -c conda-forge matplotlib
Using pip.
pip install matplotlib
VADER (Valence Aware Dictionary and sEntiment Reasoner) is a lexicon and rule-based sentiment analysis tool that is specifically attuned to sentiments expressed in social media. VADER uses a combination of A sentiment lexicon is a list of lexical features (e.g., words) which are generally labeled according to their semantic orientation as either positive or negative. VADER not only tells about the Positivity and Negativity score but also tells us about how positive or negative a sentiment is.
Note: For more information, refer to Python | Sentiment Analysis using VADER.
Below is the implementation.
Output:
👁 text-detection-positive