Code Monkey home page Code Monkey logo

hockey-transcripts's Introduction

hockey-transcripts

Digestion of hockey transcripts - Python script to read in transcript of hockey game and identify player "mentions" in an announcer's call.

Background

I performed this activity to test if a play-by-play announcer dictates the "flow" of play in a hockey game in a meaningful way. That is, would we be able to approximate the movement of the puck between players using an announcer's calls. No conclusions yet!

Obtaining the transcript

After some internet searching and twitter questioning, I couldn't find a resource for "archived" transcripts of hockey games. So, for initial testing - NHL Gamecenter, closed captioning, my ears, and really fast typing was utilized. After "completing" the transcript, I read through it to make sure all player references matched a unique identifier for that player (see below). It was by no means an exact science.

Script

I tried to make the python readable enough so that a newbie to programming might be able to follow along.

Required Inputs

  • Roster File (csv): Roster of players in game. Must include a unique identifier (first column = "Identifier". This file could be pulled from a game summary on war-on-ice.com
  • Transcript File (txt): Actual transcript of game. Any references to a player should match the "Identifier" in the roster file in order to be matched. Any stoppages in play -- or how you may otherwise want the play split up -- should be designated by two new lines.

Current Outputs

  • Mention Sequence (csv): Output of mention sequence in format of (MentionID, Portion, Player, Team)
  • Mention Summary (csv): Summarized results in format of (Player, Team, Portion, MentionCount)

hockey-transcripts's People

Contributors

amandrycky avatar

Stargazers

 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.