← Về thư mục
src/checker.py
- BaseChecker · class · L14-L21 — class BaseChecker(ABC)
- check_answer · method · L16-L17 — def check_answer(self, pred_answer: str, expected_answer: str) -> float
- parse_answer · method · L20-L21 — def parse_answer(self, response: str) -> str
- MATHChecker · class · L24-L120 — class MATHChecker(BaseChecker)
- check_answer · method · L25-L32 — def check_answer(self, pred_answer: str, expected_answer: str) -> bool
- parse_answer · method · L34-L60 — def parse_answer(self, response: str) -> str
- _find_box · function · L35-L41 — def _find_box(string:str) -> str
- _math_equal · method · L62-L120 — def _math_equal(self, pred_answer: str, expected_answer: str) -> bool
- _check_pm_match · function · L71-L86 — def _check_pm_match(pm_str, list_str)
- MMLUProChecker · class · L123-L146 — class MMLUProChecker(BaseChecker)
- check_answer · method · L124-L128 — def check_answer(self, pred_answer: str, expected_answer: str) -> bool
- parse_answer · method · L130-L138 — def parse_answer(self, response: str) -> str
- _normalize_char · method · L140-L146 — def _normalize_char(self, char: str) -> str
- strip_string · function · L162-L205 — def strip_string(string: str) -> str
- _fix_fracs · function · L208-L237 — def _fix_fracs(string)
- _fix_sqrt · function · L240-L242 — def _fix_sqrt(string)
- parse_digits · function · L245-L252 — def parse_digits(num)
- is_digit · function · L255-L257 — def is_digit(num)
- symbolic_equal · function · L260-L282 — def symbolic_equal(a, b)
- _parse · function · L268-L275 — def _parse(s)