From: Alexandre Terrasa Date: Tue, 19 Jun 2018 20:07:07 +0000 (-0400) Subject: lib/vsm: default tfidf values are extracted from terms frequencies X-Git-Url: http://nitlanguage.org lib/vsm: default tfidf values are extracted from terms frequencies Signed-off-by: Alexandre Terrasa --- 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