pointer-generator/my_make_datasets.py
def read_text_file(text_file):
    """Read a text file and tokenize to sentences"""
    with open(text_file, "r", encoding="utf-8") as f:
        lines = sent_tokenize(f.read())
    return lines
Read a text file and tokenize to sentences
Read a text file and tokenize to sentences
Read a text file and tokenize to sentences
def read_text_file(text_file):
    with open(text_file, "r", encoding="utf-8") as f:
        lines = sent_tokenize(f.read())
    return lines
def read_text_file ( text_file ) : with open ( text_file , "r" , encoding = "utf-8" ) as f : lines = sent_tokenize ( f . read ( ) ) return lines
Read a text file and tokenize to sentences
Read a text file and tokenize to sentences
"""Read a text file and tokenize to sentences"""
text_file