Skip to content

ML project that predicts rappers' hometowns based on their lyric corpus

License

Notifications You must be signed in to change notification settings

m-cahana/rapcast

Repository files navigation

Rapcast

Predicts where a rapper grew up and started their career based on their lyric corpus

Playing with the dataset:

import json
from collections import Counter

with open('./input/bag_of_words.json') as f:
  bag = json.load(f)

for artist, bag_of_words in bag.items():
  bag[artist] = Counter(bag_of_words)

To see most common words for a particular artist: bag[<ARTIST>].most_common(<INT>)

To see how many times an artist says a given word: bag[<ARTIST>][<WORD>]

View the project website:

https://m-cahana.github.io/rapcast/

About

ML project that predicts rappers' hometowns based on their lyric corpus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published