Skip to content

mmuratardag/MoralFoundationsClassifier-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

title emoji colorFrom colorTo sdk sdk_version app_file pinned license short_description
Moral Foundations Classifier App
👀
blue
green
gradio
5.40.0
app.py
false
gpl-3.0
web-app to analyze moral foundations in text

Moral Foundations Classifier App

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.

Features

  • 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

Usage

  1. Single Text Analysis: Enter or paste text in the first tab and click "Analyze Text"
  2. Batch Analysis: Upload a CSV file with a 'text' column in the second tab

About Moral Foundations Theory

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.

About

Sync repo for HuggingFace app: web-app to analyze moral foundations in text

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages