Removing Stopwords from List

50 views
Skip to first unread message

ABDUL MOHIZ

unread,
Jul 19, 2019, 2:30:45 PM7/19/19
to nltk-users




Hi everyone! I am working on my final year project where i am building a chatbot in URDU language. So i tried to remove stopwords from corpus (which is tokenized into multidimensional array in this case) 

It works fine when i remove stop words from a tokenized string but when i try to remove from multidimensional List it gives an error.. Can anyone help to sort out this.

I would be glad.. Thank you..



1.PNG


2.PNG3.PNG

Dimitriadis, A. (Alexis)

unread,
Jul 21, 2019, 5:03:14 PM7/21/19
to nltk-...@googlegroups.com
Hi Abdul,

Please include your actual code, not images. If you pass a list of sentences to a function that expects one sentence, your code certainly will not work. You need to apply your function to each sentence in your big list; more I cannot say since I cannot test-run your code to locate the problem.

Alexis


--
You received this message because you are subscribed to the Google Groups "nltk-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nltk-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/nltk-users/92c0cd3e-2f9e-4bd1-833d-088b1f4ae721%40googlegroups.com.
<1.PNG><2.PNG><3.PNG>

Reply all
Reply to author
Forward
0 new messages