From eedb505f968fd56bb908d04fc9a44871459fe0d8 Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Tue, 19 Jun 2018 16:07:07 -0400 Subject: [PATCH] lib/vsm: default tfidf values are extracted from terms frequencies Signed-off-by: Alexandre Terrasa --- lib/vsm/vsm.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vsm/vsm.nit b/lib/vsm/vsm.nit index e7ebc2e..ad3d928 100644 --- a/lib/vsm/vsm.nit +++ b/lib/vsm/vsm.nit @@ -367,7 +367,7 @@ class Document # A high weight in tf–idf is reached by a high term frequency # (in the given document) and a low document frequency of the term in the # whole collection of documents - var tfidf = new Vector + var tfidf: Vector = terms_count is lazy redef fun to_s do return "{title}" end -- 1.7.9.5