Skip to content

Commit 067269b

Browse files
Peter JohnsonPeter Johnson
authored andcommitted
shannon letters use response
1 parent 60f8236 commit 067269b

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

evaluation_function/dev.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@
1313
"word_count": "random"
1414
},
1515
"shannon_letters_ngram": {
16-
"response": 6,
16+
"response": "ate",
1717
"answer": 800,
1818
"model": "shannon_letters_ngram",
1919
"mode": "single",
2020
"word_count": "random",
21-
"context": "ate",
2221
"context_window": 3
2322
},
2423
"shannon_words_build": {

evaluation_function/models/shannon_letters_ngram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def run(response, answer, params:Params) -> Result:
111111

112112
# === SINGLE MODE ===
113113
if mode == "single":
114-
prefix = params.get("context", "he").upper()
114+
prefix = params.get("response", "he").upper()
115115
top5 = generate_single_letter(lookups, context_window, prefix)
116116
if not top5:
117117
feedback = f"No data found for prefix '{prefix}' and n={context_window}."

0 commit comments

Comments
 (0)