i used : words=TextBlob(text_) lan=words.detect_language() in my code and it displays TextBlob object has no attribute detect_language as error i have tried various modifications from chatgpt and other sites....still facing same error
1 Answer
That's probably a bit late for you, but for other people who may run into this issue, the detect_language and translate functions have been removed.
See changelog : https://textblob.readthedocs.io/en/dev/changelog.html#id2
0.18.0 (2024-02-15)
[...]
Removals:
TextBlob.translate()andTextBlob.detect_language, andtextblob.translateare removed. Use the official Google Translate API instead (#215).