Makes the labels information into a map.