From 65bdd3ab372abfd5326f62f41205cfd284a23df1 Mon Sep 17 00:00:00 2001 From: duxin Date: Mon, 24 Oct 2022 23:29:14 +0900 Subject: [PATCH] Fixed wrong behavior in `append_wordcounts`. --- corpusit/src/vocab.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/corpusit/src/vocab.rs b/corpusit/src/vocab.rs index 084ec31..415dbc0 100644 --- a/corpusit/src/vocab.rs +++ b/corpusit/src/vocab.rs @@ -252,11 +252,6 @@ impl Vocab { } } - if self.s2i.contains_key(word) { - let id = self.s2i[word]; - self.i2count.entry(id).and_modify(|c| *c += count); - continue; - } } }