nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca6027e
)
lib/vsm: default tfidf values are extracted from terms frequencies
author
Alexandre Terrasa
<alexandre@moz-code.org>
Tue, 19 Jun 2018 20:07:07 +0000
(16:07 -0400)
committer
Alexandre 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
patch
|
blob
|
history
diff --git
a/lib/vsm/vsm.nit
b/lib/vsm/vsm.nit
index
e7ebc2e
..
ad3d928
100644
(file)
--- 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