Implementation of PLSA model using EM inference algorithm