def METHOD_NAME(self, filename):
    with tf.io.gfile.GFile(filename, 'rb+') as f:
        reader = jsonlines.Reader(f)
        for item in reader:
            result = dict()
            text = item['text']
            text = text.replace("“", '"')
            text = text.replace("”", '"')
            text = text.replace("’", "'")
            text = text.replace("‘", "'")
            last_token = text.split()[-1]
            start_idx = text.rfind(last_token)
            beginning_tokens = text[:start_idx].strip()
            last_token = ' ' + last_token.strip()
            result['text'] = beginning_tokens
            result['target'] = last_token
            yield result