diff --git a/Exercise6/utils.py b/Exercise6/utils.py index 6d99cec8..9be6a112 100755 --- a/Exercise6/utils.py +++ b/Exercise6/utils.py @@ -331,7 +331,7 @@ def getVocabList(): :return: """ - vocabList = np.genfromtxt(join('Data', 'vocab.txt'), dtype=object) + vocabList = np.genfromtxt(join('Data', 'vocab.txt'), dtype=str) return list(vocabList[:, 1].astype(str))