Closed zhaozhaozhaozzz closed 1 year ago
e = Taskflow('information_extraction', schema=schema, model='uie-tiny', position_prob=0.01)
This issue is stale because it has been open for 60 days with no activity. 当前issue 60天内无活动,被标记为stale。
This issue was closed because it has been inactive for 14 days since being marked as stale. 当前issue 被标记为stale已有14天,即将关闭。
欢迎您反馈PaddleNLP使用问题,非常感谢您对PaddleNLP的贡献! 在留下您的问题时,辛苦您同步提供如下信息:
PaddlePaddle版本号:2.3 系统环境:Linux hi-prod-20 3.10.0-1127.el7.x86_64 #1 SMP Tue Mar 31 23:36:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
场景:情感分析 参考案例:https://github.com/PaddlePaddle/PaddleNLP/blob/release/2.3/docs/model_zoo/taskflow.md#%E6%83%85%E6%84%9F%E5%80%BE%E5%90%91%E5%88%86%E6%9E%90
异常描述:当传入情感分析的为数组时,有部分返回为空,如图:
schema = '情感倾向[正向,中性,负向]' ie = Taskflow("information_extraction", schema=schema, model='uie-tiny') res_tmp = ie(arr) #arr为一个需做情感分析的数组
数组数据: 数据.xlsx