Text Analyzer

Zane  Tipton

Zane Tipton

Ultimate Text Analyzer

A Python-based command-line tool that analyzes any text string for:
Sentiment (positive/negative + confidence)
Keywords (top 5 relevant terms/phrases)
Toxicity (non-toxic, offensive, or hateful)
Built using Hugging Face Transformers and KeyBERT.

Example

Enter text to analyze: I hate everything about this dumb app.

Output:

Sentiment Analysis: {‘label’: ‘NEGATIVE’, ‘score’: 0.998}
Keywords: [‘dumb app’, ‘hate everything’]
Toxicity Detection: {‘toxicity_level’: ‘Hateful’, ‘confidence’: 0.956}

How to Run

Clone or download this repo
Install dependencies:
pip install -r requirements.txt

3. Run the analyzer: python main.py

Tech Used
• transformers – for sentiment + toxicity
• keybert – for keyword extraction
• torch – used under the hood for model inference

Example Use Cases
• Content moderation
• Text summarization prep
• Sentiment or intent classification

---
Like this project

Posted Jul 2, 2025

Developed a Python tool for text analysis using Hugging Face and KeyBERT.