Update explainers/explainer_router.py
Browse files
explainers/explainer_router.py
CHANGED
|
@@ -1,5 +1,3 @@
|
|
| 1 |
-
# explainer_router.py
|
| 2 |
-
|
| 3 |
from __future__ import annotations
|
| 4 |
|
| 5 |
from typing import Optional
|
|
@@ -13,6 +11,8 @@ from explainers.explainer_algebra import explain_algebra_question
|
|
| 13 |
def route_explainer(text: str) -> Optional[ExplainerResult]:
|
| 14 |
for fn in (
|
| 15 |
explain_percent_question,
|
|
|
|
|
|
|
| 16 |
):
|
| 17 |
result = fn(text)
|
| 18 |
if result is not None and getattr(result, "understood", False):
|
|
|
|
|
|
|
|
|
|
| 1 |
from __future__ import annotations
|
| 2 |
|
| 3 |
from typing import Optional
|
|
|
|
| 11 |
def route_explainer(text: str) -> Optional[ExplainerResult]:
|
| 12 |
for fn in (
|
| 13 |
explain_percent_question,
|
| 14 |
+
explain_ratio_question,
|
| 15 |
+
explain_algebra_question,
|
| 16 |
):
|
| 17 |
result = fn(text)
|
| 18 |
if result is not None and getattr(result, "understood", False):
|