From 47ea342105d5215578fce5c545cb9d867e411d62 Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Fri, 6 Oct 2017 13:46:36 -0400 Subject: [PATCH] nlp: use new vector representation Signed-off-by: Alexandre Terrasa --- lib/nlp/nlp.nit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nlp/nlp.nit b/lib/nlp/nlp.nit index 7f9510a..0e4dba3 100644 --- a/lib/nlp/nlp.nit +++ b/lib/nlp/nlp.nit @@ -31,9 +31,9 @@ redef class NLPDocument var lemma = token.lemma if lemma_black_list.has(lemma) then continue if not vector.has_key(lemma) then - vector[lemma] = 1 + vector[lemma] = 1.0 else - vector[lemma] += 1 + vector[lemma] += 1.0 end end end -- 1.7.9.5