From 98272ec20671eeb34cac2774da98fa5255dee007 Mon Sep 17 00:00:00 2001 From: Siddharth Mishra <59869361+siddharth07-ui@users.noreply.github.com> Date: Sun, 5 Nov 2023 22:50:21 +0530 Subject: [PATCH] Updating textblob translate function At line number 66, updating method for translating using textblob method. Updating "print(blob.translate(to='fr'))" to "print(blob.translate(from_lang='en', to='fr'))" --- 6-NLP/3-Translation-Sentiment/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/6-NLP/3-Translation-Sentiment/README.md b/6-NLP/3-Translation-Sentiment/README.md index 9ed7a186..d3b018d9 100644 --- a/6-NLP/3-Translation-Sentiment/README.md +++ b/6-NLP/3-Translation-Sentiment/README.md @@ -63,7 +63,7 @@ from textblob import TextBlob blob = TextBlob( "It is a truth universally acknowledged, that a single man in possession of a good fortune, must be in want of a wife!" ) -print(blob.translate(to="fr")) +print(blob.translate(from_lang='en', to='fr')) ```