Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@CristhianBoujon
Created March 18, 2018 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CristhianBoujon/85d894c6155f98650db0aaa8eeb7619a to your computer and use it in GitHub Desktop.
Save CristhianBoujon/85d894c6155f98650db0aaa8eeb7619a to your computer and use it in GitHub Desktop.
cars_for_sell = [line.replace("\n", "") for line in open("cars_for_sell.txt")]
common_words = get_top_n_words(cars_for_sell, 20)
for word, freq in common_words:
print(word, freq)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment