From 1e8dbe70a328654849fcbb33c39c6efb4fd43c1b Mon Sep 17 00:00:00 2001 From: "Carlos A. Iglesias" Date: Thu, 16 Apr 2026 16:27:23 +0200 Subject: [PATCH] Update 4_3_Vector_Representation.ipynb Updated ngram_range to tuple --- nlp/4_3_Vector_Representation.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nlp/4_3_Vector_Representation.ipynb b/nlp/4_3_Vector_Representation.ipynb index 9eb8e9a..a13ca53 100644 --- a/nlp/4_3_Vector_Representation.ipynb +++ b/nlp/4_3_Vector_Representation.ipynb @@ -363,7 +363,7 @@ "metadata": {}, "outputs": [], "source": [ - "vectorizer = CountVectorizer(analyzer=\"word\", stop_words='english', ngram_range=[2,2]) \n", + "vectorizer = CountVectorizer(analyzer=\"word\", stop_words='english', ngram_range=(2,2)) \n", "vectors = vectorizer.fit_transform(documents)\n", "vectorizer.get_feature_names_out()" ]