Skip to content

gareth12/econtalk-ngrams

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

econtalk-ngrams

This repository computes n-grams from transcripts of the EconTalk podcast.

How to use

First, scrape the transcripts

python scrape.py

this populates the transcripts folder with text files for each episode. To compute ngrams from transcripts in the transcripts folder, run

python ngrams.py

The script will generate output in the ngrams folder, with one file for ngrams consisting of a fixed number of words. For example, the file ngrams03.csv contains a CSV of n-grams of three words in the transcripts. The first few lines of this file read as follows

3883,a lot of
1581,are going to
1554,one of the
1368,the united states
1261,going to be
....

This means that the phrase "a lot of" occurs 3883 times across all transcripts.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages