Senta 情感分析 Fine-tune
Created by: lynette2020
paddlehub==1.6.2 paddlepaddle==1.8.0
我按照 https://github.com/PaddlePaddle/PaddleHub/tree/release/v1.7/demo/senta 步骤做,但是到 config = hub.RunConfig( use_cuda=False, use_pyreader=False, use_data_parallel=False, num_epoch=3, batch_size=32, strategy=hub.AdamWeightDecayStrategy())
后报错
Traceback (most recent call last): File "", line 6, in File "D:\Anaconda3\envs\sentiment\lib\site-packages\paddlehub\finetune\task\classifier_task.py", line 179, in init metrics_choices=metrics_choices) File "D:\Anaconda3\envs\sentiment\lib\site-packages\paddlehub\finetune\task\classifier_task.py", line 49, in init metrics_choices=metrics_choices) File "D:\Anaconda3\envs\sentiment\lib\site-packages\paddlehub\finetune\task\base_task.py", line 299, in init main_program, for_test=False) File "D:\Anaconda3\envs\sentiment\lib\site-packages\paddlehub\common\paddle_helper.py", line 274, in clone_program dest_program.global_block()) File "D:\Anaconda3\envs\sentiment\lib\site-packages\paddlehub\common\paddle_helper.py", line 147, in _copy_vars_and_ops_in_blocks var_info = copy.deepcopy(get_variable_info(var)) File "D:\Anaconda3\envs\sentiment\lib\site-packages\paddlehub\common\paddle_helper.py", line 65, in get_variable_info var_info['gradient_clip_attr'] = var.gradient_clip_attr AttributeError: 'Parameter' object has no attribute 'gradient_clip_attr'