Open ManimozhiSathish opened 3 years ago
Running this code from the readme is working using Python 3.8.8 64-bit with updates as needed to dependencies:
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
ValueError Traceback (most recent call last)