# Data matrix (12 poems x 8 words) in numpy format frequency_matrix = np.array([ [5, 1, 3, 4, 4, 0, 0, 0], [4, 2, 5, 3, 3, 1, 0, 0], [3, 0, 2, 5, 5, 0, 0, 0], [1, 1, 0, 2, 2, 5, 3, 1], [0, 5, 3, 1, 1, 2, 2, 1], [2, 2, 1, 4, 4, 2, 1, 1], [0, 1, 0, 2, 3, 3, 5, 2], [2, 2, 4, 2, 2, 3, 2, 1], [1, 1, 1, 3, 4, 4, 2, 3], [0, 0, 0, 4, 5, 1, 1, 0], [3, 2, 1, 2, 1, 4, 2, 1], [4, 3, 3, 3, 2, 1, 0, 0] ]) # Word list words = np.array(["king", "queen", "throne", "sword", "battle", "love", "beauty", "rose"]) # Poem titles poems = np.array([ "Epic of Kings", "Royal Chronicles", "Sword and Crown", "Love in War", "Tales of Queens", "The Rose and the Blade", "Beauty and Blood", "Throne of Hearts", "War and Roses", "Battle Hymn", "Kingdom of Love", "Royal Blood" ])