From 21a348f0b0895b320717ea6e2c37acc1dafcf0ff Mon Sep 17 00:00:00 2001 From: Harshil Darji Date: Tue, 2 Aug 2016 23:44:38 +0530 Subject: [PATCH] Improvement --- detect english/detecting_english_programmatically.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detect english/detecting_english_programmatically.py b/detect english/detecting_english_programmatically.py index dad320b43..305174e31 100644 --- a/detect english/detecting_english_programmatically.py +++ b/detect english/detecting_english_programmatically.py @@ -5,7 +5,7 @@ LETTERS_AND_SPACE = UPPERLETTERS + UPPERLETTERS.lower() + ' \t\n' def loadDictionary(): path = os.path.split(os.path.realpath(__file__)) - dictionaryFile = open(path[0] + '\Dictionary.txt') + dictionaryFile = open(path[0] + '/Dictionary.txt') englishWords = {} for word in dictionaryFile.read().split('\n'): englishWords[word] = None