From 5b2f7ef542fe497d69e8c4e2133dc181618f927c Mon Sep 17 00:00:00 2001 From: pancodaffee Date: Sat, 9 Dec 2023 22:07:39 -0800 Subject: [PATCH] fix code sample runtime error --- 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..f8646705 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")) ```