sloria / TextBlob

Simple, Pythonic, text processing--Sentiment analysis, part-of-speech tagging, noun phrase extraction, translation, and more.
https://textblob.readthedocs.io/
MIT License
9.02k stars 1.13k forks source link

Joining TextBlobs / Sentence #413

Open thomasf1 opened 1 year ago

thomasf1 commented 1 year ago

Not sure if this is a bug or feature request, I do enjoy that I can concentrate your Objects like strings. Now I wanted to concentrate a list, but ran into the following:

" ".join(storedSentences)

Getting: TypeError: sequence item 0: expected str instance, Sentence found

Unfortunately, the other way does not work either:

Sentence(" ").join(storedSentences)

TypeError: sequence item 0: expected str instance, Sentence found

Maybe I am doing it wrong?

PS: Great library! Especially the TextBlobs Are Like Python Strings! makes things really easy, thanks for implementing that :)