Semantic And Latent Codes