From 94cc88f4ab129405510f729727d4a472a9a6186f Mon Sep 17 00:00:00 2001 From: Amit Date: Thu, 10 Jan 2019 19:13:46 +0530 Subject: [PATCH] closing opened file --- preprocess.py | 1 + 1 file changed, 1 insertion(+) 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)