Removing stopwords,but should return as a line
Posted
by
Sarath R Nair
on Stack Overflow
See other posts from Stack Overflow
or by Sarath R Nair
Published on 2013-11-06T21:35:39Z
Indexed on
2013/11/06
21:53 UTC
Read the original article
Hit count: 326
python
My question may appear silly. But as I am a rookie in Python , help me out.
I have to pass a line to a stopword removal function. It works fine. But my problem is return of the function is appending the words. I want it as like follows:
line = " I am feeling good , but I cant talk"
Let "I,but,cant"
are stopwords.
After passing to the function , my output should be as "am feeling good , talk"
.
What I a getting now is [['am','feeling','good','talk']]
.
Help me.
© Stack Overflow or respective owner