ERNIE icon indicating copy to clipboard operation
ERNIE copied to clipboard

fine tuning得到checkpoint后,进行test报raise ex IndexError: list index out of range

Open Austendeng opened this issue 7 years ago • 1 comments

序列标注任务,先是进行了fine tuning得到了checkpoint,模仿BERT中的predict_classifier.py写了预测代码,自定义Processor如下: image

测试数据如下: image 执行后报错: image 请求解答错误原因。

Austendeng avatar Jun 19 '19 03:06 Austendeng

已解决,算是个bug吧。 数据只有单句text_a,ernie下的batching.py写死了要text_a text_b成对出现。 把ernie下的batching.py换成bert下的batching.py就可以了

Austendeng avatar Jun 19 '19 11:06 Austendeng