Method for dataset loads huge data

Hi, everyone.
i have a large dataset.every line is the word ids.
I can’t read it into the memory, i can’t figure out how to solve the problem.
i also read the pd.read_csv method, but i don’t know how to do it in the get_item method of dataset class.