1

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 1

1

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() and TextBlob.detect_language, and textblob.translate are removed. Use the official Google Translate API instead (#215).
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.