(text)
| 47 | return args, data, llm |
| 48 | |
| 49 | def process(text): |
| 50 | # lower case |
| 51 | text = text.lower() |
| 52 | # remove_articles |
| 53 | text = re.sub(r"\b(a|an|the)\b", " ", text) |
| 54 | # unify white space |
| 55 | text = " ".join(text.split()) |
| 56 | # remove punctuation |
| 57 | exclude = set(string.punctuation) |
| 58 | text = "".join(ch for ch in text if ch not in exclude) |
| 59 | return text |
| 60 | def check_prompt(question, output, standard_answers): |
| 61 | standard_answers_formatted = "\n".join([f"- {ans}\n" for ans in standard_answers]) |
| 62 | return f""" |
no outgoing calls
no test coverage detected