Classifying music genres from lyrics
I trained a classifier to distinguish five genres using the words of 15,000 songs.
A frozen MiniLM encoder turned each lyric into a 384-component vector. I trained a PyTorch classifier on those vectors and examined which genres it confused. Pop and rock lyrics were harder to distinguish than rap and metal. The zero-shot comparison used a 150-song subset.
