Skip to main content
100%

Gist 8583392

✓ Published0🌍 Public
Aamundo
Last edited Jan 23, 2014
Created on Jan 23, 2014

This example displays the frequency of personal pronouns in the Brown Corpus news category as a crude text bar chart. Using NLTK, it loads the news texts, tokenizes them, and applies `FreqDist` to count lowercase pronoun occurrences. The output prints each pronoun followed by a row of asterisks, where every asterisk represents 20 occurrences, alongside the raw count. The visualization intentionally uses a simple, non-graphical format, showing relative frequencies such as “he” dominating with 642 mentions and “us” appearing only 13 times.

AI-generated description

Similar vizzes