Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lighteval/tasks/tasks/ifbench/instructions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ def get_instruction_args_keys(self):

def check_following(self, value):
"""Checks if the response includes at least {N} pronouns."""
pronouns = set(
pronouns = {
"i",
"me",
"my",
Expand Down Expand Up @@ -1165,7 +1165,7 @@ def check_following(self, value):
"their",
"theirs",
"themselves",
)
}
value = value.replace(
"/", " "
) # to correctly count pronoun sets like she/her/hers, a common use case of pronouns
Expand Down
Loading