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:
committed by
GitHub
parent
b3c799e564
commit
1e8dbe70a3
@@ -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()"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user