Skip to content

Commit

Permalink
Update dictionary.py revert back to old solution
Browse files Browse the repository at this point in the history
  • Loading branch information
lydianish authored Jul 24, 2024
1 parent 5fbe8b4 commit e67ba8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fairseq/data/dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def add_symbol(self, word, n=1, overwrite=True):
self.count[idx] = self.count[idx] + n
return idx
else:
idx = len(self.indices)
idx = len(self.symbols)
self.indices[word] = idx
self.symbols.append(word)
self.count.append(n)
Expand Down

0 comments on commit e67ba8a

Please sign in to comment.