Spaces:
Running
Running
Update hackaprompt/evaluator.py
Browse files- hackaprompt/evaluator.py +1 -1
hackaprompt/evaluator.py
CHANGED
@@ -54,7 +54,7 @@ class LevelEvaluator:
|
|
54 |
formatted_completion = self.format_completion(completion)
|
55 |
translator = str.maketrans('', '', string.punctuation)
|
56 |
|
57 |
-
return True if (expected_completion.lower().translate(translator) == formatted_completion.lower().translate(translator) else False
|
58 |
|
59 |
def compute_score(self, is_correct, token_count):
|
60 |
score_multiplier = self.completer.get_score_multiplier()
|
|
|
54 |
formatted_completion = self.format_completion(completion)
|
55 |
translator = str.maketrans('', '', string.punctuation)
|
56 |
|
57 |
+
return True if (expected_completion.lower().translate(translator) == formatted_completion.lower().translate(translator)) else False
|
58 |
|
59 |
def compute_score(self, is_correct, token_count):
|
60 |
score_multiplier = self.completer.get_score_multiplier()
|