open file and read sentence
问题 I want to open a file and get sentences. The sentences in the file go across lines, like this: "He said, 'I'll pay you five pounds a week if I can have it on my own terms.' I'm a poor woman, sir, and Mr. Warren earns little, and the money meant much to me. He took out a ten-pound note, and he held it out to me then and there. currently I'm using this code: text = ' '.join(file_to_open.readlines()) sentences = re.split(r' *[\.\?!][\'"\)\]]* *', text) readlines cuts through the sentences, is