The samples from the Bernoulli mixture can be generated by first choosing a component c ∈ {1, 2, • • • , K} from Cat(π) and then drawing a sample from the chosen distribution Bernoulli(γ c ).
a mapping from the latent representation z to the cor-responding label y is learned for each document.