Durganihantri commited on
Commit
3ac4f74
Β·
verified Β·
1 Parent(s): f703cab

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +106 -0
README.md CHANGED
@@ -10,3 +10,109 @@ pinned: false
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
13
+
14
+ MicroAggression Insight Tool
15
+
16
+ πŸ“Œ An AI-powered tool for analyzing, categorizing, and visualizing microaggressions based on sentiment and NLP processing.
17
+
18
+ πŸ” Project Overview
19
+
20
+ The MicroAggression Insight Tool is a research-driven web app that:
21
+ βœ… Collects user-reported microaggression experiences
22
+ βœ… Analyzes sentiment polarity (negative, neutral, positive)
23
+ βœ… Categorizes microaggressions into: Microinvalidation, Microinsult, Microassault
24
+ βœ… Visualizes trends using bar charts & word clouds
25
+ βœ… Supports social psychology & intergroup relations research
26
+
27
+ This project aligns with social psychology research on discrimination perception and consequences, specifically for microaggressions in different social contexts.
28
+
29
+ 🎯 How to Use the App
30
+
31
+ 1️⃣ Enter a statement (e.g., β€œYou’re so articulate for someone like you”)
32
+ 2️⃣ Click Analyze
33
+ 3️⃣ The app will:
34
+ β€’ Categorize the statement into Microinvalidation, Microinsult, or Microassault
35
+ β€’ Analyze Sentiment (-1 = Negative, 0 = Neutral, +1 = Positive)
36
+ β€’ Visualize common patterns across all collected data
37
+
38
+ πŸ”— Live App: Check it out on Hugging Face Spaces
39
+
40
+ πŸ–₯️ Installation & Running Locally
41
+
42
+ πŸ”§ If you want to run this app on your local machine, follow these steps:
43
+
44
+ 1. Clone the Repository
45
+
46
+ git clone https://github.com/durganihantri/MicroAggression-Insight-Tool.git
47
+ cd MicroAggression-Insight-Tool
48
+
49
+ 2. Create a Virtual Environment (Optional)
50
+
51
+ python -m venv venv
52
+ source venv/bin/activate # On Mac/Linux
53
+ venv\Scripts\activate # On Windows
54
+
55
+ 3. Install Dependencies
56
+
57
+ pip install -r requirements.txt
58
+
59
+ 4. Run the Streamlit App
60
+
61
+ streamlit run app.py
62
+
63
+ βœ… The app will launch in your browser at http://localhost:8501.
64
+
65
+ πŸš€ Deployment on Hugging Face Spaces
66
+
67
+ If you want to deploy this app on Hugging Face Spaces, follow these steps:
68
+
69
+ 1️⃣ Go to Hugging Face Spaces
70
+ 2️⃣ Click β€œCreate new Space”
71
+ 3️⃣ Set SDK to Streamlit
72
+ 4️⃣ Upload these files:
73
+ β€’ app.py (Main Streamlit app)
74
+ β€’ requirements.txt (Dependencies)
75
+ 5️⃣ Click β€œCommit” and wait for the app to deploy.
76
+
77
+ πŸ”— Live App URL: Your Hugging Face Spaces Link
78
+
79
+ πŸ› οΈ Technical Details
80
+ β€’ Framework: Streamlit
81
+ β€’ Backend: Python (NLTK, TextBlob for NLP processing)
82
+ β€’ Data Storage: CSV-based (for collecting user input)
83
+ β€’ Visualization: Matplotlib, WordCloud
84
+ β€’ Modeling Techniques:
85
+ β€’ Sentiment Analysis via TextBlob
86
+ β€’ Categorization via basic NLP keyword matching
87
+
88
+ πŸ“Œ Features & Future Enhancements
89
+
90
+ βœ… Current Features
91
+
92
+ βœ”οΈ Microaggression categorization (Microinvalidation, Microinsult, Microassault)
93
+ βœ”οΈ Sentiment analysis for emotional impact
94
+ βœ”οΈ Bar chart & word cloud visualizations
95
+ βœ”οΈ User-reported microaggressions database
96
+
97
+ πŸ”₯ Planned Enhancements
98
+
99
+ πŸš€ Improve NLP classification (use GPT-based models for better accuracy)
100
+ πŸš€ Add multilingual support (expand analysis to other languages)
101
+ πŸš€ Integrate advanced analytics (e.g., time trends, deeper sentiment shifts)
102
+ πŸš€ Export reports for researchers (downloadable CSV files)
103
+
104
+ πŸ§‘β€πŸ’» Author & Contact
105
+
106
+ πŸ‘€ Developed by: Durganihantri
107
+ πŸ’‘ For inquiries, research collaboration, or feedback:
108
+ πŸ“§ Email: [email protected]
109
+ πŸ”— LinkedIn: http://linkedin.com/in/durganihantri
110
+
111
+ ⭐ Contribute & Support
112
+
113
+ If you find this project useful, please consider starring the repo ⭐ and contributing!
114
+
115
+ πŸ“Œ To contribute:
116
+ β€’ Fork this repository
117
+ β€’ Make improvements
118
+ β€’ Submit a Pull Request!