TEXT2EMO β Text Emotion Detection Tool (Full Source Code)
TEXT2EMO is a modern Python desktop application for offline text emotion detection and sentiment screening. It analyzes written text and identifies the dominant emotional tone with an optional confidence score, all while remaining privacy-safe and fully local.
This repository contains the full source code, allowing you to customize the emotion engine, UI layout, confidence logic, or extend it with advanced NLP models.
π SCREENSHOT
π FEATURES
-
π Text Emotion Analysis β Detects the dominant emotional tone from user input
-
π Supported Emotions
-
Happy
-
Sad
-
Angry
-
Fear
-
Surprise
-
Neutral
-
π Confidence Scoring β Optional percentage-based confidence output
-
β‘ Fast & Offline β No inteβ¦
TEXT2EMO β Text Emotion Detection Tool (Full Source Code)
TEXT2EMO is a modern Python desktop application for offline text emotion detection and sentiment screening. It analyzes written text and identifies the dominant emotional tone with an optional confidence score, all while remaining privacy-safe and fully local.
This repository contains the full source code, allowing you to customize the emotion engine, UI layout, confidence logic, or extend it with advanced NLP models.
π SCREENSHOT
π FEATURES
-
π Text Emotion Analysis β Detects the dominant emotional tone from user input
-
π Supported Emotions
-
Happy
-
Sad
-
Angry
-
Fear
-
Surprise
-
Neutral
-
π Confidence Scoring β Optional percentage-based confidence output
-
β‘ Fast & Offline β No internet connection or APIs required
-
π§΅ Multithreaded Processing β Keeps the UI responsive during analysis
-
π Live Progress Bar β Visual feedback during processing
-
π Live Output Console β Step-by-step status updates
-
π¨ Modern Themed UI β Built with Tkinter + ttkbootstrap (Superhero theme)
-
π Safe Stop Control β Stop button to interrupt processing
-
π Built-In Help Window β Usage instructions and developer info
-
π Privacy-Safe β All processing happens locally
π INSTALLATION
- Clone or download this repository:
git clone https://github.com/rogers-cyber/TEXT2EMO.git cd TEXT2EMO
- Install required Python packages:
pip install ttkbootstrap
(Tkinter is included with standard Python installations.)
- Run the application:
python TEXT2EMO.py
- Optional: Build a standalone executable using PyInstaller:
pyinstaller βonefile βwindowed TEXT2EMO.py
π‘ USAGE
Enter Text:
- Paste or type text into the Text Input field
Configure Settings:
- Enable or disable Confidence Score output
Analyze Text:
- Click β Analyze Text
- Watch progress and live output
Stop Analysis:
- Click β Stop to interrupt processing
View Results:
- Detected emotion
- Optional confidence percentage
Help:
- Click βΉ Help for feature overview and usage tips
βοΈ CONFIGURATION OPTIONS
Option Description
Text Input User-provided text for analysis Show Confidence Score Toggle confidence percentage display Analyze Text Start emotion detection Stop Interrupt current analysis Progress Bar Visual processing indicator Live Output Status and results console Help Built-in instructions and info
π¦ OUTPUT
- Detected Emotion β Dominant emotional category
- Confidence Score β Percentage confidence (optional)
π¦ DEPENDENCIES
- Python 3.10+
- Tkinter β Standard Python GUI framework
- ttkbootstrap β Modern themed UI components
- Threading β Background processing
- OS / SYS / Time β Utility and runtime support
π NOTES
- Designed for fast sentiment screening
- Keyword-based emotion engine (easy to extend)
- Ideal for offline use, moderation tools, and demos
- Can be upgraded with ML / NLP libraries (e.g., spaCy, transformers)
- Fully portable when compiled as a standalone executable
π€ ABOUT
TEXT2EMO is developed and maintained by Mate Technologies, providing practical AI-powered desktop tools built with Python.
Website: https://matetools.gumroad.com
π LICENSE
Distributed as commercial source code. You may use it for personal or commercial projects. Redistribution, resale, or rebranding as a competing product is not allowed.