Spaces:
Sleeping
Sleeping
Update OVAL.py
Browse files
OVAL.py
CHANGED
|
@@ -4,10 +4,14 @@ from config import DIMS
|
|
| 4 |
|
| 5 |
def oval_scores(text: str) -> list[float | None]:
|
| 6 |
"""
|
| 7 |
-
Compute OVAL automated scores for:
|
| 8 |
- Structural Clarity
|
| 9 |
- Reasoning Quality
|
| 10 |
- Factuality
|
|
|
|
|
|
|
| 11 |
"""
|
| 12 |
-
|
| 13 |
-
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
def oval_scores(text: str) -> list[float | None]:
|
| 6 |
"""
|
| 7 |
+
Compute OVAL automated scores for these 5 dimensions:
|
| 8 |
- Structural Clarity
|
| 9 |
- Reasoning Quality
|
| 10 |
- Factuality
|
| 11 |
+
- Depth of Analysis
|
| 12 |
+
- Topic Coverage
|
| 13 |
"""
|
| 14 |
+
# OVAL 只打后 5 项中的前 5(即索引 5–9)
|
| 15 |
+
vals = [stable_score("OVAL", text, d) for d in DIMS[5:10]]
|
| 16 |
+
# 前 5 维度(Prompt 主观)留 None,后面 DeepEval 维度也留 None
|
| 17 |
+
return [None]*5 + vals + [None]*5
|