How medhabhat-codes/python_project works
This is a single-file, interactive customer-feedback analyzer. Its workflow accepts a message (or built-in samples), extracts and masks PII while removing it from analytical text, then cleans the text and computes sentiment, keyword frequencies, and spam status before printing a report. The stages are implemented in one script rather than separate modules. The README documents these capabilities; the source excerpt confirms their processing order and shared implementation.
Main entry points: CUSTOMER_FEEDBACK_ANALYSIS.py PII Extraction & Masking
Components 9
Message Analysis
- Text Cleaning
CUSTOMER_FEEDBACK_ANALYSIS.py - Sentiment Scoring
CUSTOMER_FEEDBACK_ANALYSIS.py - Keyword Frequencies
CUSTOMER_FEEDBACK_ANALYSIS.py - Spam Screening
CUSTOMER_FEEDBACK_ANALYSIS.py
Privacy Processing
- PII Extraction & Masking
CUSTOMER_FEEDBACK_ANALYSIS.py
Input and Reporting
- Message Input
CUSTOMER_FEEDBACK_ANALYSIS.py - Sample Messages
CUSTOMER_FEEDBACK_ANALYSIS.py - Analysis Report
CUSTOMER_FEEDBACK_ANALYSIS.py
Other components
- User
Connections 14
- User → Message Input: enters message
CUSTOMER_FEEDBACK_ANALYSIS.py - Message Input → Sample Messages: selects samples
CUSTOMER_FEEDBACK_ANALYSIS.py - Message Input → PII Extraction & Masking: provides message
CUSTOMER_FEEDBACK_ANALYSIS.py - Sample Messages → PII Extraction & Masking: provides messages
CUSTOMER_FEEDBACK_ANALYSIS.py - PII Extraction & Masking → Text Cleaning: passes sanitized text
CUSTOMER_FEEDBACK_ANALYSIS.py - Text Cleaning → Sentiment Scoring: provides words
CUSTOMER_FEEDBACK_ANALYSIS.py - Text Cleaning → Keyword Frequencies: provides words
CUSTOMER_FEEDBACK_ANALYSIS.py - Text Cleaning → Spam Screening: provides words
CUSTOMER_FEEDBACK_ANALYSIS.py - PII Extraction & Masking → Spam Screening: provides original text
CUSTOMER_FEEDBACK_ANALYSIS.py - Sentiment Scoring → Analysis Report: reports mood
CUSTOMER_FEEDBACK_ANALYSIS.py - Keyword Frequencies → Analysis Report: reports top terms
CUSTOMER_FEEDBACK_ANALYSIS.py - Spam Screening → Analysis Report: reports classification
CUSTOMER_FEEDBACK_ANALYSIS.py - PII Extraction & Masking → Analysis Report: reports masked data
CUSTOMER_FEEDBACK_ANALYSIS.py - Analysis Report → User: displays results
CUSTOMER_FEEDBACK_ANALYSIS.py