Cosines Similarity over Tf-Idf Weighted Vectors (as User Defined Function for Pig Latin).