ScalaConsultants / Aspect-Based-Sentiment-Analysis

💭 Aspect-Based-Sentiment-Analysis: Transformer & Explainable ML (TensorFlow)
Apache License 2.0
539 stars 91 forks source link

Indexing error in pipeline module for long sentences #48

Closed SurajDonthi closed 3 years ago

SurajDonthi commented 3 years ago

Getting the following error for long sentences.

The python code used is as below:

import aspect_based_sentiment_analysis as absa
nlp = absa.load()
sentence = "...."
aspects = [....]
outputs = nlp(sentence, aspects=aspects)

Error:

IndexError: indices[0,512] = 512 is not in [0, 512) [Op:ResourceGather]
rolczynski commented 3 years ago

PR merged 😊