MCPcopy Index your code
hub / github.com/Tele-AI/Telechat / build_example

Function build_example

evaluation/score_CEVAL.py:68–78  ·  view source on GitHub ↗
(question, A, B, C, D, with_answer: bool = True)

Source from the content-addressed store, hash-verified

66
67
68def build_example(question, A, B, C, D, with_answer: bool = True):
69 choice = "\n".join(
70 [
71 "A. " + A,
72 "B. " + B,
73 "C. " + C,
74 "D. " + D,
75 ]
76 )
77 answer = data["answer"].strip().upper() if with_answer else ""
78 return f"{question}\n{choice}\n答案:{answer}"
79
80def extract_answer_option(text):
81 patterns = [

Callers 1

score_CEVAL.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected