-
Notifications
You must be signed in to change notification settings - Fork 35
add bfcl utility #174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
add bfcl utility #174
Conversation
| except (ValueError, SyntaxError) as e: | ||
| raise ValueError(f"Invalid initial_config format: {test_entry['initial_config']}") from e | ||
| try: | ||
| involved_classes: list = eval(test_entry["involved_classes"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be literal_eval too?
|
|
||
| def __evaluate__(self, answer_text, target_text, initial_config, involved_classes, test_entry_id): | ||
| test_entry = { | ||
| "initial_config": eval(initial_config), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this also?
| def __evaluate__(self, answer_text, target_text, initial_config, involved_classes, test_entry_id): | ||
| test_entry = { | ||
| "initial_config": eval(initial_config), | ||
| "involved_classes": eval(involved_classes), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these also?
No description provided.