title | emoji | colorFrom | colorTo | sdk | pinned | license | short_description |
---|---|---|---|---|---|---|---|
Political Ideologies Analysis and Classification |
🍃 |
indigo |
purple |
docker |
true |
mit |
Analysis and Classification |
This project provides a comprehensive analysis of political ideologies using data from the Huggingface Political Ideologies dataset. The analysis involves data preprocessing, mapping ideological labels, and visualizing political statements through Word2Vec embeddings and t-SNE projections. Additionally, an interactive tool is created for exploring political ideologies and their related issue types in a 2D space.
The goal of this project is to analyze the political ideologies dataset to understand the distribution of political ideologies (conservative vs liberal) and their association with various issue types. The analysis involves:
- Data Loading and Cleaning: Loading, cleaning, and mapping data from the Huggingface dataset.
- Label Mapping: Mapping ideological labels (conservative and liberal) and issue types to numerical values.
- Word2Vec Embeddings: Generating word embeddings for political statements to create vector representations.
- Dimensionality Reduction: Using t-SNE to reduce the dimensionality of embeddings and visualize them in 2D.
- Interactive Visualizations: Visualizing the data using Altair with interactive charts to explore ideology and issue type distributions.
The dataset used in this project is the Political Ideologies dataset from Huggingface, which contains political statements along with their corresponding labels (conservative or liberal) and issue types (economic, environmental, social, etc.).
- Python 3.x
- TensorFlow
- Gensim
- Pandas
- NumPy
- Matplotlib
- Seaborn
- Altair
You can install the necessary dependencies with:
pip install -r requirements.txt