1
0
mirror of https://github.com/gsi-upm/sitc synced 2026-04-16 22:58:16 +00:00

Update 4_3_Vector_Representation.ipynb

Updated ngram_range to tuple
This commit is contained in:
Carlos A. Iglesias
2026-04-16 16:27:23 +02:00
committed by GitHub
parent b3c799e564
commit 1e8dbe70a3

View File

@@ -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()"
]