Spaces:
Running
Running
File size: 11,466 Bytes
d3a295a 4c30eba 6649eca ed7925c 6649eca d3a295a 4c30eba 6649eca 4c30eba d3a295a 4c30eba 08932e9 6649eca 08932e9 6bb169f cd24975 9ec1e3c cd24975 08932e9 cd24975 4c30eba 77ad562 6bb169f ed7925c d3a295a 6649eca ed7925c 6649eca ed7925c d3a295a 4c30eba d3a295a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Political Speech Semantic Map Gallery</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<style>
/* Adding additional styles for new analysis section */
.analysis-section {
margin-top: 40px;
}
.analysis-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
margin-bottom: 20px;
}
.analysis-item {
background: white;
border-radius: 8px;
overflow: hidden;
}
.analysis-preview {
position: relative;
padding-top: 56.25%; /* 16:9 aspect ratio */
height: 0;
}
.analysis-preview iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
}
/* New styles for LLM comparison section */
.llm-comparison {
margin-top: 40px;
}
.llm-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
margin-bottom: 20px;
}
.llm-item {
background: white;
border-radius: 8px;
padding: 15px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.llm-item img {
width: 100%;
height: auto;
border-radius: 4px;
}
.llm-item h4 {
margin: 10px 0;
color: #333;
}
</style>
</head>
<body>
<header>
<h1>Political Speech Semantic Map Gallery</h1>
<p class="subtitle">Explore visual topic modeling of political speeches</p>
</header>
<div class="container">
<!-- Original gallery content -->
<div class="gallery">
<div class="map-item">
<div class="map-preview">
<iframe src="trump_speeches.html"></iframe>
<div class="map-overlay">
<a href="#" class="view-button" data-map="trump_speeches.html">View Map</a>
</div>
</div>
<div class="map-info">
<h2>Trump Speeches Analysis</h2>
<p>Visual topic modeling of Trump's speeches, with metadata about which parts of his speeches discuss each topic.</p>
</div>
</div>
<div class="map-item">
<div class="map-preview">
<iframe src="inaugural_speeches_map.html"></iframe>
<div class="map-overlay">
<a href="#" class="view-button" data-map="inaugural_speeches_map.html">View Map</a>
</div>
</div>
<div class="map-info">
<h2>US Presidential Inaugural Speeches</h2>
<p>Visual topic modeling of various US presidential inaugural speeches throughout history.</p>
</div>
</div>
<div class="map-item">
<div class="map-preview">
<iframe src="inaugural_speeches_map_new_chunking.html"></iframe>
<div class="map-overlay">
<a href="#" class="view-button" data-map="inaugural_speeches_map_new_chunking.html">View Map</a>
</div>
</div>
<div class="map-info">
<h2>US Presidential Inaugural Speeches v2</h2>
<p>Visual topic modeling of various US presidential inaugural speeches throughout history. Chunking 4|1. Model: all-mpnet-base-v2</p>
</div>
</div>
<div class="map-item">
<div class="map-preview">
<iframe src="inaugural_unity.html"></iframe>
<div class="map-overlay">
<a href="#" class="view-button" data-map="inaugural_unity.html">View Map</a>
</div>
</div>
<div class="map-info">
<h2>US Presidential Inaugural Speeches Bourdieu Map</h2>
<p>VTM with unity-division international-domestic axis. model: all-mpnet-base-v2</p>
</div>
</div>
<div class="map-item">
<div class="map-preview">
<iframe src="topic_analysis_plot.html"></iframe>
<div class="map-overlay">
<a href="#" class="view-button" data-map="topic_analysis_plot.html">View Plot</a>
</div>
</div>
<div class="map-info">
<h2>Topic Distribution Analysis</h2>
<p>Comparison of topic distributions between Trump, Republican, and Democratic speeches.</p>
</div>
<div class="stats">
<p><strong>Chi-square statistic:</strong> 50.52226900766782</p>
<p><strong>p-value:</strong> 1.1307886006522511e-06</p>
<p><strong>Interpretation:</strong> There is a statistically significant difference in topic distribution across political sides.</p>
</div>
</div>
<!-- New Multi-President Analysis -->
<div class="map-item">
<div class="map-preview">
<iframe src="multi_pres_mpnet_4prez.html"></iframe>
<div class="map-overlay">
<a href="#" class="view-button" data-map="multi_pres_mpnet_4prez.html">View Map</a>
</div>
</div>
<div class="map-info">
<h2>Multi-President Speech Analysis</h2>
<p>Comparative analysis of speeches from Trump, Reagan, Obama, and Roosevelt using all-mpnet-base-v2 model with 15 clusters.</p>
</div>
</div>
</div>
<!-- Analysis Section -->
<div class="analysis-section">
<h2>Trump vs Harris Speech Analysis</h2>
<h3>Dimension Comparisons</h3>
<div class="analysis-grid">
<div class="analysis-item">
<div class="analysis-preview">
<iframe src="comparison_power_projection_20241112_231103.html"></iframe>
</div>
</div>
<div class="analysis-item">
<div class="analysis-preview">
<iframe src="comparison_unity_message_20241112_231103.html"></iframe>
</div>
</div>
<div class="analysis-item">
<div class="analysis-preview">
<iframe src="comparison_future_vision_20241112_231103.html"></iframe>
</div>
</div>
<div class="analysis-item">
<div class="analysis-preview">
<iframe src="comparison_emotional_resonance_20241112_231103.html"></iframe>
</div>
</div>
</div>
<h3>Individual Speaker Analysis</h3>
<div class="analysis-grid">
<div class="analysis-item">
<div class="analysis-preview">
<iframe src="speaker_trump_20241112_231103.html"></iframe>
</div>
</div>
<div class="analysis-item">
<div class="analysis-preview">
<iframe src="speaker_harris_20241112_231103.html"></iframe>
</div>
</div>
</div>
</div>
<!-- LLM vs Human Labeling Comparison Section -->
<div class="llm-comparison">
<h2>LLM vs Human Labeling Comparison</h2>
<h3>Harris Defeat Speech Analysis</h3>
<div class="llm-grid">
<div class="llm-item">
<img src="Unity message - Harris defeat speech.png" alt="Unity Message Analysis - Harris">
<h4>Unity Message Analysis</h4>
</div>
<div class="llm-item">
<img src="Emotional resonance - Harris defeat speech.png" alt="Emotional Resonance Analysis - Harris">
<h4>Emotional Resonance Analysis</h4>
</div>
<div class="llm-item">
<img src="Future vision - Harris defeat speech.png" alt="Future Vision Analysis - Harris">
<h4>Future Vision Analysis</h4>
</div>
<div class="llm-item">
<img src="Power projection - Harris defeat speech.png" alt="Power Projection Analysis - Harris">
<h4>Power Projection Analysis</h4>
</div>
</div>
<h3>Trump Victory Speech Analysis</h3>
<div class="llm-grid">
<div class="llm-item">
<img src="Unity message - Trump Victory speech.png" alt="Unity Message Analysis - Trump">
<h4>Unity Message Analysis</h4>
</div>
<div class="llm-item">
<img src="Pwer projection - Trump victory speech.png" alt="Power Projection Analysis - Trump">
<h4>Power Projection Analysis</h4>
</div>
<div class="llm-item">
<img src="Emotional resonance - Trump Victory speech.png" alt="Emotional Resonance Analysis - Trump">
<h4>Emotional Resonance Analysis</h4>
</div>
<div class="llm-item">
<img src="Future vision- Trump Victory speech.png" alt="Future Vision Analysis - Trump">
<h4>Future Vision Analysis</h4>
</div>
</div>
</div>
</div>
<div id="mapModal" class="modal">
<span class="close-modal">×</span>
<div class="modal-content">
<iframe id="modalIframe" src=""></iframe>
</div>
</div>
<script>
const modal = document.getElementById('mapModal');
const modalIframe = document.getElementById('modalIframe');
const viewButtons = document.querySelectorAll('.view-button');
const closeModal = document.querySelector('.close-modal');
viewButtons.forEach(button => {
button.addEventListener('click', (e) => {
e.preventDefault();
const mapSrc = button.getAttribute('data-map');
modalIframe.src = mapSrc;
modal.style.display = 'block';
});
});
closeModal.addEventListener('click', () => {
modal.style.display = 'none';
modalIframe.src = '';
});
window.addEventListener('click', (e) => {
if (e.target == modal) {
modal.style.display = 'none';
modalIframe.src = '';
}
});
</script>
</body>
</html> |