Skip to content

Commit

Permalink
type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Gorbatovski authored and Alexey Gorbatovski committed Oct 18, 2024
1 parent 2c37155 commit bee6aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turbo_alignment/metrics/distinctness.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def compute(self, **kwargs) -> list[MetricResults]:
@staticmethod
def distinctness(answers: list[str], vocab_size: int, ngram: int) -> dict[str, float]:
ngram_sets: list[set] = [set() for _ in range(ngram)]
total_ngrams = [0] * ngram
total_ngrams: list[int] = [0] * ngram

for answer in answers:
words = answer.split(' ')
Expand Down

0 comments on commit bee6aa0

Please sign in to comment.