Modeling topics and knowledge bases with vector representations