def getData(sFile): from Methods.IO import readData readData = readData(sFile) data = [] target = [] for line in readData: target.append(int(line[0])) data.append(line[1].lower()) target = np.array(target) return data, target
def getEmotions(): arr = readData("data/Emotions.txt") for index in range(0, len(arr)): arr[index][0] = stem(arr[index][0]) return arr