We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccbf828 commit 451c3c7Copy full SHA for 451c3c7
Ch3/02_Bag_of_Words.ipynb
@@ -131,7 +131,7 @@
131
"source": [
132
"#BoW with binary vectors\n",
133
"count_vect = CountVectorizer(binary=True)\n",
134
- "bow_rep_bin = count_vect.fit_transform(processed_docs)\n",
+ "count_vect.fit(processed_docs)\n",
135
"temp = count_vect.transform([\"dog and dog are friends\"])\n",
136
"print(\"Bow representation for 'dog and dog are friends':\", temp.toarray())"
137
]
0 commit comments