Skip to content

Commit 58ce35c

Browse files
author
sant_si
committed
imports fixed
1 parent 1b137a2 commit 58ce35c

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

bag_of_words.ipynb

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -376,16 +376,6 @@
376376
"from nltk import PorterStemmer, SnowballStemmer"
377377
]
378378
},
379-
{
380-
"cell_type": "code",
381-
"execution_count": null,
382-
"metadata": {},
383-
"outputs": [],
384-
"source": [
385-
"from nltk import PorterStemmer\n",
386-
"from nltk.stem import WordNetLemmatizer"
387-
]
388-
},
389379
{
390380
"cell_type": "code",
391381
"execution_count": null,
@@ -422,6 +412,15 @@
422412
"We could see that babies is shortened to `babi`, which is not really an english word, but as long as suffixes of `babi-` are grouped as a single token, it helps in easy processing. But what if we need to be still grammatically correct and trade off with the speed of calculation. In that case we have to use Lemmatization. It is grammatically accurate and it is computationally expensive, since it loads a lemmatizer model."
423413
]
424414
},
415+
{
416+
"cell_type": "code",
417+
"execution_count": null,
418+
"metadata": {},
419+
"outputs": [],
420+
"source": [
421+
"from nltk.stem import WordNetLemmatizer"
422+
]
423+
},
425424
{
426425
"cell_type": "code",
427426
"execution_count": null,

0 commit comments

Comments
 (0)