changes of LDA inference interface for convenience of learning