ADD Abbreviations

This test replaces familiar words or expressions in texts with their abbreviations. These abbreviations are commonly used on social media platforms and some are generic. It evaluates the NLP model’s ability to handle text with such abbreviations.

alias_name: add_abbreviation

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.


    min_pass_rate: 0.7
    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 add_abbreviation test.

  • min_pass_rate (float): Minimum pass rate to pass the test.
  • prob (float): Controls the proportion of words to be changed.


Original Test Case
Amazing food! Great service! Amzn food! Gr8 service!
Make sure you’ve gone online to download one of the vouchers - it’s definitely not worth paying full price for! Make sure u’ve gone onl 2 d/l one of da vouchers - it’s dfntly not worth paying full price 4!