CompletedSubTask'对象没有属性'aspect_representation

问题描述

我正在研究基于方面的情感。 我只是想让代码正常工作,例如模块博客中的示例。 但是我有这个错误

html = absa.probing.explain(slack)
display(html)

AttributeError                            Traceback (most recent call last)
<ipython-input-20-98b6fe874b12> in <module>
----> 1 html = absa.probing.explain(slack)
      2 display(html)

~/Library/Python/3.8/lib/python/site-packages/aspect_based_sentiment_analysis/probing/plots.py in explain(example)
     47 
     48 def explain(example: PredictedExample):
---> 49     aspect = example.aspect_representation
     50     texts = [f'Words connected with the "{example.aspect}" aspect: <br>']
     51     texts.extend(highlight_sequence(aspect.tokens,aspect.look_at))

AttributeError: 'CompletedSubTask' object has no attribute 'aspect_representation'

更多内容https://pypi.org/project/aspect-based-sentiment-analysis/

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)