예제 #1
0
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 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
예제 #3
0
def getEmotions():
    arr = readData("data/Emotions.txt")
    for index in range(0, len(arr)):
        arr[index][0] = stem(arr[index][0])
    return arr
예제 #4
0
def getEmotions():
    arr = readData("data/Emotions.txt")
    for index in range(0, len(arr)):
        arr[index][0] = stem(arr[index][0])
    return arr