I have a text file with one text per line, a quick way to create the list object is :
from numpy import loadtxt
texts = loadtxt("myfile.txt", dtype=str, delimiter="\n", unpack=False)
However, my text file is 700mb large so when executing this I get OOM error (I have more than 125gb or RAM )
is there any other way of doing this without getting the out of memory error?