Image of a hub, © Paul Watson, CC  BY-NC-SA 2.0 The Linguistic Teaching resources Hub
Image © Paul Watson, Licence CC BY-NC-SA 2.0

Counting Word Frequencies with Python

* William J. Turkel * Adam Crymble *

Keywords: word frequency, python, counting

http://programminghistorian.org/lessons/counting-frequencies

This small tutorial explains how to create a word frequency list from a word list. The output format is either a separate list for the frequencies (parallel to the words list) or a list of pairs (word, frequency).

The tutorial also contains a function to remove frequent stopwords.

Feedback

Sorry, there is no feedback available. Be the first one to provide feedback!

Resource details

Institution: The Programming Historian
Year of publication: 2012
Language: english
Type: Tutorial
Audience: historians, linguists
Level: basic
Prerequisites:

A normalised word list

Media: text/html
Objective:

Create word frequencies in different formats from a normalised word list

Licence: CC-BY
Access: open
Creation date: Monday, 20 April 2015 15:12:18
Last modified: Tuesday, 30 April 2024 02:06:45
BibTeX type: @misc
BibTeX entry:
@misc(TeLeMaCo:336,
author = "Turkel, William J. and Crymble, Adam",
title = "{C}ounting {W}ord {F}requencies with {P}ython",
year = "2012",
url = "http://programminghistorian.org/lessons/counting-frequencies"
)

Helpdesk Button