Coder Social home page Coder Social logo

afcarl / what-they-said Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brandonrobertz/what-they-said

0.0 1.0 0.0 12.94 MB

An interactive tool for searching hundreds of hours of 2016 campaign speeches

Makefile 1.44% Python 6.93% JavaScript 81.26% Shell 0.55% CSS 1.67% HTML 8.15%

what-they-said's Introduction

What Trump Said

Live demo here

This is an interactive tool that allows you to search through hundreds of Donald Trump campaign speeches and locate specific instances, on video, where he said things. We're using YouTube transcripts to build our index, which are of variable quality, so your searches are limited to the accuracy of the transcription.

How it works

This tool uses a series of steps to turn campaign speeches into a searchable database. Everything is orchestrated with GNU Make. It uses youtube-dl to fetch video transcripts from various Trump campaign speech playlists, lunr.js to build the reverse index, and the YouTube wrapper for loading videos to a given point in time.

Preprocessing

The pre-processing for the text analysis works like so:

- Lowercase all text
- Compute td-idf for corpus
- All words appearing in less than 5% of the collection are removed
- From each document, only the top n number of features based on tf-idf ranking are picked.

what-they-said's People

Contributors

brandonrobertz avatar

Watchers

 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.