Git Product home page Git Product logo

hill-speech-old's Introduction

Topic Modeling in Congressional Speeches

Summary

In today's political climate, access to trustworthy information is more important than ever. Yet, with social-media echo chambers and increasingly partisan news outlets, impartial connections to primary sources are becoming less common. Congress.gov provides transcriptions of every speech given in congress since 1995, but search functionality is primitive and the volume of data (16k new words per day) makes finding information difficult. Hillspeech helps interested citizens find the speeches they care about.

Preprocessing

This project required an extensive data collection and preprocessing effort, including: writing a web-scraping engine to dynamically discover and parse 560 thousand web pages, implementing heuristic rules to annotate unstructured text, and storing data in a Mongo database for fast searching and retrieval. The resulting 5 GB of data contained transcriptions of over 430 thousand speeches.

Topic Modeling

I used Latent Dirichlet Analysis--an unsupervised semantic model--to determine which topics were most represented in the corpus of congressional speeches. For example, the model found that words like "Medicare", "insurance", and "health" are generally used together in the same context. This model allows any speech to be scored on its relevance to topics like gun control or immigration.

Flask App

I have written a web app that integrates with the model and allows users to search for speeches that pertain to issues they consider important. Results are filterable by date, speaker identity, and other metrics. In this way, individuals can directly discover what their representatives are saying without relying on potentially biased sources.

hill-speech-old's People

Contributors

johnmarcampbell avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.