diff --git a/preprocess.py b/preprocess.py index 209c6be..2214c0b 100644 --- a/preprocess.py +++ b/preprocess.py @@ -59,6 +59,7 @@ def makeVocabulary(filename, size): for word in sent.split(): #vocab.add(word) vocab.add(word.lower()) # Lowercase all words + f.close() originalSize = vocab.size() vocab = vocab.prune(size)