Adjective Antonym Swap
This test provides a convenient way to convert adjectives into their equivalent antonyms.
alias_name: adjective_antonym_swap
To test QA models, we are using QAEval from Langchain where we need to use the model itself or other ML model for evaluation, which can make mistakes.
Config
adjective_antonym_swap:
min_pass_rate: 0.8
prob: 0.5 # Defaults to 1.0, which means all words will be transformed.
You can adjust the level of transformation in the sentence by using the “prob
” parameter, which controls the proportion of words to be changed during adjective_antonym_swap
test.
- min_pass_rate (float): Minimum pass rate to pass the test.
- prob (float): Controls the proportion of words to be changed.
Examples
Original | Test Case |
---|---|
Lisa is wearing a beautiful shirt today. This soup is not edible. | Lisa is wearing a ugly shirt today. This soup is not inedible. |
They have a beautiful house. | They have a ugly house. |
PREVIOUSContribution Guidelines