bhardwaj08sarthak commited on
Commit
0c8ba57
·
verified ·
1 Parent(s): 52bcee7

Update level_classifier_tool.py

Browse files
Files changed (1) hide show
  1. level_classifier_tool.py +1 -12
level_classifier_tool.py CHANGED
@@ -1,14 +1,3 @@
1
- # level_classifier_tool.py
2
- """
3
- A lightweight utility for classifying a question against Bloom's and DOK levels
4
- by comparing its embedding to curated "anchor phrases" for each level.
5
-
6
- Main entry point:
7
- classify_levels_phrases(question, blooms_phrases, dok_phrases, ...)
8
-
9
- Author: Prepared by ChatGPT
10
- """
11
-
12
  from __future__ import annotations
13
 
14
  from dataclasses import dataclass
@@ -91,7 +80,7 @@ def _default_preprocess(s: str) -> str:
91
  @dataclass
92
  class PhraseIndex:
93
  phrases_by_level: Dict[str, List[str]]
94
- embeddings_by_level: Dict[str, "Any"] # torch.Tensor, but keep Any to avoid hard dep at import time
95
  model_name: str
96
 
97
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  from __future__ import annotations
2
 
3
  from dataclasses import dataclass
 
80
  @dataclass
81
  class PhraseIndex:
82
  phrases_by_level: Dict[str, List[str]]
83
+ embeddings_by_level: Dict[str, "Any"]
84
  model_name: str
85
 
86