text_list = df_res.select("content").rdd.flatMap(lambda x: x).collect()for i in text_list:
tokenizer = BertTokenizer('./my_bert/my_bert/vocab.txt')
model = TFBertForSequenceClassification.from_pretrained("./my_bert/my_bert")
bert_input = encode_examples(i, tokenizer)
note_class = predict(model, bert_input)print(f"the note is : {i}, and the predict result is: {note_class} !!!")