ScalaConsultants / Aspect-Based-Sentiment-Analysis

💭 Aspect-Based-Sentiment-Analysis: Transformer & Explainable ML (TensorFlow)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Attribute error with spacy text splitter

xesaad opened this issue · comments

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!

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

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

awesome, thank you 😄