From 5dc4ba9b9f83674062ed417e00b5bff0211b7769 Mon Sep 17 00:00:00 2001 From: testfixme <82149911+testfixme@users.noreply.github.com> Date: Sun, 14 Nov 2021 16:38:17 +0700 Subject: [PATCH 1/2] Update TFIDFSearcher.java --- src/TFIDFSearcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TFIDFSearcher.java b/src/TFIDFSearcher.java index cd7d33e..5e0e4bb 100644 --- a/src/TFIDFSearcher.java +++ b/src/TFIDFSearcher.java @@ -75,7 +75,7 @@ public TFIDFSearcher(String docFilename) { docLength.put(doc.getId(), sum); } - //System.out.println(docLength); + System.out.println(docLength); //System.out.println("TF"+findTf("cancel", this.documents.get(0).getTokens())); //System.out.println(idf.get("cancel")); From 04992dc96f001cd2c606c19904d8d0d0271a223e Mon Sep 17 00:00:00 2001 From: testfixme <82149911+testfixme@users.noreply.github.com> Date: Thu, 18 Nov 2021 14:53:11 +0700 Subject: [PATCH 2/2] Update JaccardSearcher.java --- src/JaccardSearcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JaccardSearcher.java b/src/JaccardSearcher.java index 4603cbe..1ee53f4 100644 --- a/src/JaccardSearcher.java +++ b/src/JaccardSearcher.java @@ -47,7 +47,7 @@ public List search(String queryString, int k) { } result.add(temp); //System.out.println("Adding : "+temp.getScore()); - //System.out.println(result); + System.out.println(result); } } // We need to check if SearchResult was created on the suitable size of ArrayList