| title | Moral Foundations Classifier App |
|---|---|
| emoji | 👀 |
| colorFrom | blue |
| colorTo | green |
| sdk | gradio |
| sdk_version | 5.40.0 |
| app_file | app.py |
| pinned | false |
| license | gpl-3.0 |
| short_description | web-app to analyze moral foundations in text |
A Gradio-based web application for analyzing moral foundations in text using the MoralFoundationsClassifier model.
Visit the web-app at https://huggingface.co/spaces/MMADS/MoralFoundationsClassifier-app.
- Single text analysis with instant results
- Batch processing of CSV files
- Interactive visualizations of moral foundation scores
- Cached model loading for better performance
- Example texts for quick testing
- Single Text Analysis: Enter or paste text in the first tab and click "Analyze Text"
- Batch Analysis: Upload a CSV file with a 'text' column in the second tab
The app analyzes text for five moral foundations:
- Care/Harm
- Fairness/Cheating
- Loyalty/Betrayal
- Authority/Subversion
- Sanctity/Degradation
Each foundation has both virtue (positive) and vice (negative) dimensions.