Skip to content

Commit

Permalink
logs added
Browse files Browse the repository at this point in the history
  • Loading branch information
nikit-srivastava committed Oct 10, 2018
1 parent 30fe9a0 commit a1ca655
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ public void testNbmTime() throws IOException {
float[] word2Vec = nbm.word2vec.get("%_#F########_3v.jsn");
LOG.info("Cosine Similarity between " + word1 + " & " + word2 + " is : "
+ Word2VecMath.cosineSimilarity(word1Vec, word2Vec));
LOG.info("Cosine Similarity between " + word1 + " & Centroid19 is : "
+ Word2VecMath.cosineSimilarity(TestConst.CENT19, word1Vec));
LOG.info("Cosine Similarity between " + word2 + " & Centroid19 is : "
+ Word2VecMath.cosineSimilarity(TestConst.CENT19, word2Vec));
}

private static float[][] fetchWordsVec(String[] words, Word2VecModel nbm) {
Expand Down

0 comments on commit a1ca655

Please sign in to comment.