ERNIE
ERNIE copied to clipboard
fine tuning得到checkpoint后,进行test报raise ex IndexError: list index out of range
序列标注任务,先是进行了fine tuning得到了checkpoint,模仿BERT中的predict_classifier.py写了预测代码,自定义Processor如下:

测试数据如下:
执行后报错:
请求解答错误原因。
已解决,算是个bug吧。 数据只有单句text_a,ernie下的batching.py写死了要text_a text_b成对出现。 把ernie下的batching.py换成bert下的batching.py就可以了