Code repository for "What Musical Knowledge Does Self-Attention Learn ?" by Gabriel Loiseau, Mikaela Keller and Louis Bigo.
For the composer identification task first execute Data-Preprocessing.ipynb
to generate the 4 datasets.
The code for both experiments is in the other notebook Music_NLP_Self_Attention.ipynb
.