mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00

* Update with PMMEval * Update * Update __init__.py * Fix Bugs * Delete .pre-commit-config.yaml * Pull merge --------- Co-authored-by: liushz <qq1791167085@163.com>
13 lines
344 B
Python
Executable File
13 lines
344 B
Python
Executable File
def forbidden_words_checker(input_string: str, forbidden_words: list,
|
|
**kwargs):
|
|
return not any(word in input_string for word in forbidden_words)
|
|
|
|
|
|
keywords_checker = {
|
|
'forbidden_words': {
|
|
'function': forbidden_words_checker,
|
|
'required_lang_code': False,
|
|
'num_of_params': 2
|
|
},
|
|
}
|