Skip to content

Commit 54fcf42

Browse files
Merge pull request #53 from faisito/patch-1
Updated 02_Bag_of_Words.ipynb to remove redundant code.
2 parents ccbf828 + 451c3c7 commit 54fcf42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Ch3/02_Bag_of_Words.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
"source": [
132132
"#BoW with binary vectors\n",
133133
"count_vect = CountVectorizer(binary=True)\n",
134-
"bow_rep_bin = count_vect.fit_transform(processed_docs)\n",
134+
"count_vect.fit(processed_docs)\n",
135135
"temp = count_vect.transform([\"dog and dog are friends\"])\n",
136136
"print(\"Bow representation for 'dog and dog are friends':\", temp.toarray())"
137137
]

0 commit comments

Comments
 (0)