Included class to compute cosine similarity measure for type of event classification