You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Gradio-based web application for analyzing moral foundations in text using the [MoralFoundationsClassifier](https://huggingface.co/MMADS/MoralFoundationsClassifier) model.
16
+
17
+
## Features
18
+
19
+
- Single text analysis with instant results
20
+
- Batch processing of CSV files
21
+
- Interactive visualizations of moral foundation scores
22
+
- Cached model loading for better performance
23
+
- Example texts for quick testing
24
+
25
+
## Usage
26
+
27
+
1.**Single Text Analysis**: Enter or paste text in the first tab and click "Analyze Text"
28
+
2.**Batch Analysis**: Upload a CSV file with a 'text' column in the second tab
29
+
30
+
## About Moral Foundations Theory
31
+
32
+
The app analyzes text for five moral foundations:
33
+
- Care/Harm
34
+
- Fairness/Cheating
35
+
- Loyalty/Betrayal
36
+
- Authority/Subversion
37
+
- Sanctity/Degradation
38
+
39
+
Each foundation has both virtue (positive) and vice (negative) dimensions.
0 commit comments