可以参考一下这个
https://github.com/bojone/bert_in_keras/blob/master/sentiment.py
输入的数据格式不对,他这里要求要是一个tensorxiang jiang