Skip to content

Commit

Permalink
Update simuleval/evaluator/instance.py
Browse files Browse the repository at this point in the history
Co-authored-by: Abinesh Ramakrishnan <3632454+ibanesh@users.noreply.github.com>
  • Loading branch information
xutaima and ibanesh authored Nov 29, 2023
1 parent 3da63af commit 261d9b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simuleval/evaluator/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ def __init__(self, info: str) -> None:

self.index = self.info["index"]
self.reference = self.info.get("reference", "")
self.latency_unit = "word"
self.latency_unit = latency_unit
self.source_length = self.info.get("source_length") # just for testing!
self.finish_prediction = True
self.metrics = {}
Expand Down

0 comments on commit 261d9b7

Please sign in to comment.