Getting error with basic first code
Hi, I tried only the first lines of code that were :
import aspect_based_sentiment_analysis as absa
nlp = absa.load()
text = ("We are great fans of Slack, but we wish the subscriptions "
"were more accessible to small startups.")
slack, price = nlp(text, aspects=['slack', 'price'])
assert price.sentiment == absa.Sentiment.negative
assert slack.sentiment == absa.Sentiment.positive
and got the following error :
Traceback (most recent call last):
File "test_absa.py", line 3, in Layer.call must always be passed.
Call arguments received by layer "bert_abs_classifier" (type BertABSClassifier): • token_ids={'input_ids': 'tf.Tensor(shape=(3, 5), dtype=int32)'} • attention_mask=None • token_type_ids=None • training=False • bert_kwargs=<class 'inspect._empty'>
Any idea how to solve this ?
Same here, any solutions?
I got the same error. For me it was solved when I installed from the environment.yml. My problem in specific is that I had Python >3.7
A bit late, but can confirm (at least for me) changing Python version immediately fixed the issue.
To create a new virtual environment with Python version 3.6 in Jupyter Notebook, take a look at this.
This is what it looks like for me:

I am unable to install python version 3.6 on jupyter notebook colab. I get an error like this
Any ideas why this might be the case?
@VedantNemane
@VedantNemane I installed 3.6.13 venv on pycharm and that can deal with the installation at least. btw 3.6.8 and 3.6.10 didn't help installing this package. Thanks for the guide!
for me error is : RecursionError: maximum recursion depth exceeded in instancecheck