ScalaConsultants / Aspect-Based-Sentiment-Analysis

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

Attribute error with spacy text splitter #57

Open xesaad opened 2 years ago

xesaad commented 2 years ago

Hi there!

When I try to follow the pipeline steps laid out in the README exactly, I receive the following error at the preprocessing stage:

AttributeError: 'spacy.tokens.span.Span' object has no attribute 'string'

Upon removing the text_splitter from the pipeline setup I no longer get this error, but it would be useful to be able to initialize the pipeline with the text splitter (e.g. for passing in texts whose tokenization is longer than 512 tokens).

Thank you very much for the help!

rolczynski commented 2 years ago

It's now available the upgraded version 😊 (make sure that spacy is in the correct version)

xesaad commented 2 years ago

It's now available the upgraded version 😊 (make sure that spacy is in the correct version)

awesome, thank you 😄