Skip to content

Commit 42acbc4

Browse files
Peter JohnsonPeter Johnson
authored andcommitted
debug line to check deployed pkl file
1 parent a152b08 commit 42acbc4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

evaluation_function/models/shannon_words_ngram.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ def log(msg):
3333
def get_counts(n=3, dev=False):
3434
print(f"Loading/building n-gram counts for n={n}...")
3535
if os.path.exists(FILE):
36+
size = os.path.getsize(FILE)
37+
raise RuntimeError(f"Found {FILE}, size={size} bytes")
3638
try:
3739
with bz2.BZ2File(FILE, "rb") as f:
3840
cache = pickle.load(f)

0 commit comments

Comments
 (0)