lib/vsm: default tfidf values are extracted from terms frequencies
authorAlexandre Terrasa <alexandre@moz-code.org>
Tue, 19 Jun 2018 20:07:07 +0000 (16:07 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Tue, 19 Jun 2018 20:22:13 +0000 (16:22 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

lib/vsm/vsm.nit

index e7ebc2e..ad3d928 100644 (file)
@@ -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