Add the function that calculate similarity of the sentence and the category