Removing stopwords,but should return as a line
- by Sarath R Nair
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.