From c381f057abcc4c05689a7dd7e778c6e0256f3dc5 Mon Sep 17 00:00:00 2001 From: "nikit91@gmail.com" Date: Thu, 18 Oct 2018 13:12:49 +0200 Subject: [PATCH] adding logs --- .../aksw/word2vecrestful/word2vec/W2VNrmlMemModelKMeans.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/aksw/word2vecrestful/word2vec/W2VNrmlMemModelKMeans.java b/src/main/java/org/aksw/word2vecrestful/word2vec/W2VNrmlMemModelKMeans.java index e0c025d..82a2b23 100644 --- a/src/main/java/org/aksw/word2vecrestful/word2vec/W2VNrmlMemModelKMeans.java +++ b/src/main/java/org/aksw/word2vecrestful/word2vec/W2VNrmlMemModelKMeans.java @@ -214,8 +214,10 @@ private String getClosestEntry(float[] vector, String subKey) { closestWord = findClosestWord(nearbyIndexes, vector); tl.printTime(1, "finding closest word"); } catch (Exception e) { + LOG.error("Exception has occured while finding closest word."); e.printStackTrace(); } + LOG.info("Closest word found is: "+closestWord); return closestWord; }