Skip to content

Commit 6884dd2

Browse files
Peter JohnsonPeter Johnson
authored andcommitted
Fix bug in get_counts argument
1 parent 8c44c8b commit 6884dd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evaluation_function/models/shannon_words_ngram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def log(msg):
3030
# If creating locally, to be copied when deployed:
3131
FILE = MODEL_DIR / "ngram_counts.pkl.bz2"
3232

33-
def get_counts(n=3, dev):
33+
def get_counts(n=3, dev=False):
3434
print(f"Loading/building n-gram counts for n={n}...")
3535
if os.path.exists(FILE):
3636
try:

0 commit comments

Comments
 (0)