Skip to content

Commit

Permalink
Fixed wrong behavior in append_wordcounts.
Browse files Browse the repository at this point in the history
  • Loading branch information
kduxin committed Oct 24, 2022
1 parent 86dc8ce commit 65bdd3a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions corpusit/src/vocab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit 65bdd3a

Please sign in to comment.