Extended LDA graphical model