Java Implementation of Semantic Similarity Algorithms