EugeneXiang commited on
Commit
345d556
·
verified ·
1 Parent(s): d8484b5

Update OVAL.py

Browse files
Files changed (1) hide show
  1. OVAL.py +7 -3
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
- vals = [stable_score("OVAL", text, d) for d in DIMS[3:6]]
13
- return [None]*3 + vals + [None]*3
 
 
 
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