process input to generate keyphrase,word degree,topic and word distributiom