| 
                         input 
- test_text = [ 
 -  '小明虽然考了第一,但是他一点也不骄傲', # 积极  
 -  '你不是不聪明,而是不认真', # 消极 
 -  '虽然小明很努力,但是他还是没有考100分', # 消极  
 -  '虽然小明有时很顽皮,但是他很懂事', # 积极  
 -  '虽然这座桥已经建了很多年,但是她依然很坚固', # 积极  
 -  '他虽然很顽皮,但是学习很好', # 积极 
 -  '学习不是枯燥无味,而是趣味横生', # 积极  
 -  '虽然很困难,但是我还是不会退缩', # 积极  
 -  '虽然小妹妹只有5岁,但是她能把乘法口诀倒背如流', # 积极  
 -  '虽然我很过分,但是都是为了你好', # 积极  
 -  '小明成绩不好,不是因为不聪明,而是因为不努力', # 消极  
 -  '虽然这样做不妥当,但已经是最好的选择', # 积极  
 -  '这次虽然失败,但却是成功的开始', # 积极 
 -  '虽然这道题很难,但是我相信我会把它做出来', # 积极  
 -  '虽然爷爷已经很老了,但是他还是坚持每天做运动', # 积极  
 -  '不是没有美,而是我们缺少发现美的眼光', # 消极  
 -  '虽然他们有良好的生活条件,但是浪费资源迟早会带来恶果', # 消极  
 -  '他不是我们的敌人,而是我们的朋友', # 积极  
 -  '他不是不会做,而是不想做', # 消极 
 -  '虽然那个梦想看起来离我遥不可及,但是我相信经过我的努力它一定会实现', # 积极 
 -  ] 
 
  
output 
- 运行耗时: 2秒667毫秒 
 - text: 小明虽然考了第一,但是他一点也不骄傲, positive_prob: 0.9598, 
 -  predict: positive  
 - text: 你不是不聪明,而是不认真, positive_prob: 0.0275, 
 -  predict: negative 
 - text: 虽然小明很努力,但是他还是没有考100分, positive_prob: 0.7188, 
 -  predict: positive # 错误 
 - text: 虽然小明有时很顽皮,但是他很懂事, positive_prob: 0.8776, 
 -  predict: positive 
 - text: 虽然这座桥已经建了很多年,但是她依然很坚固, positive_prob: 0.9782, 
 -  predict: positive 
 - text: 他虽然很顽皮,但是学习很好, positive_prob: 0.9181, 
 -  predict: positive 
 - text: 学习不是枯燥无味,而是趣味横生, positive_prob: 0.3279, 
 -  predict: negative # 错误 
 - text: 虽然很困难,但是我还是不会退缩, positive_prob: 0.3974, 
 -  predict: negative # 错误 
 - text: 虽然小妹妹只有5岁,但是她能把乘法口诀倒背如流, positive_prob: 0.5124, 
 -  predict: neutral 
 - text: 虽然我很过分,但是都是为了你好, positive_prob: 0.399, 
 -  predict: negative # 错误 
 - text: 小明成绩不好,不是因为不聪明,而是因为不努力, positive_prob: 0.1881, 
 -  predict: negative 
 - text: 虽然这样做不妥当,但已经是最好的选择, positive_prob: 0.806, 
 -  predict: positive 
 - text: 这次虽然失败,但却是成功的开始, positive_prob: 0.4862, 
 -  predict: neutral # 错误 
 - text: 虽然这道题很难,但是我相信我会把它做出来, positive_prob: 0.3959, 
 -  predict: negative # 错误 
 - text: 虽然爷爷已经很老了,但是他还是坚持每天做运动, positive_prob: 0.9178, 
 -  predict: positive 
 - text: 不是没有美,而是我们缺少发现美的眼光, positive_prob: 0.5614, 
 -  predict: positive 
 - text: 虽然他们有良好的生活条件,但是浪费资源迟早带来恶果, positive_prob: 0.1086, 
 -  predict: negative 
 - text: 他不是我们的敌人,而是我们的朋友, positive_prob: 0.3749, 
 -  predict: negative # 错误 
 - text: 他不是不会做,而是不想做, positive_prob: 0.1247, 
 -  predict: negative  
 - text: 虽然那个梦想看起来离我遥不可及,但是我相信经过我的努力它一定会实现, positive_prob: 0.957, 
 -  predict: positive 
 
  
正确率:13/20 = 65% 
具体场景情绪分析                         (编辑:泰州站长网) 
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! 
                     |