Hi Team,
We are using this API for spam filtering in our chatbot service. However, We are seeing for some statements, spam probablity is 0.42. Still the prediction is spam. Please fix it.
Hey Sourabh,
Its not a bug but a feature!!
We are considering a threshold of 0.40 for the classification to say Spam. For this reason only are are providing the spamProbability key. You can use a threshold that suits your needs.
Hey Sourabh,
Its not a bug but a feature!!
We are considering a threshold of 0.40 for the classification to say Spam. For this reason only are are providing the spamProbability key. You can use a threshold that suits your needs.