Skip to content

Commit

Permalink
fix: remove duplicit building of vocabs[ID] in build_vocabs_streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
vejvarm committed Nov 28, 2023
1 parent 9b934bd commit f11bee9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,6 @@ def _build_vocabs_streaming(self):
# Create and save vocabularies
vocabs = dict()
print("Building vocabularies (streaming)...")
vocabs[ID] = self._counter_to_vocab(self.counters[ID],
specials=[],
vocab_cache=self.vocab_cache.joinpath("id_vocab.pkl"))
vocabs[ID] = self._counter_to_vocab(self.counters[ID],
specials=[],
vocab_cache=self.vocab_cache.joinpath("id_vocab.pkl"))
Expand Down

0 comments on commit f11bee9

Please sign in to comment.