added the code which returns the score of the individual bag of word. still it has to be looped so that we can find the threshold from it