Text Similarity Java port

This is Java port of Text Similarity module. Thank you