Message Boards Message Boards

0
|
4273 Views
|
4 Replies
|
2 Total Likes
View groups...
Share
Share this post:

[?] Add words to the stop word list?

Posted 5 years ago

I want to generate a WordCloud from people's submitted questions. DeleteStopWords is a useful start, but there are also a collection of technical terms that I want to remove from the WordCloud. Is there a way to temporarily add to the stop word list from within a notebook?

POSTED BY: Andrew Burnett
4 Replies
Posted 5 years ago

Oh, that's neat! Thank you, that solves my problem beautifully.

POSTED BY: Andrew Burnett
Posted 5 years ago

Basically, that is exactly what I am trying to do. However, rather than write a new function, I would like to extend the list used by DeleteStopwords[], that way the whole process is simplified. It's OK if this isn't possible, but I would like to understand: 1. How can I find/see the contents of the list that DeleteStopwords uses 2. Why I can't update it, i.e. is there something special about that list.

POSTED BY: Andrew Burnett
Posted 5 years ago

To get the list of stop words used by DeleteStopwords.

WordList["Stopwords"]

I do not think there is a way to change that list. There is no need to write a new function though, you can just do this

WordCloud[Complement[DeleteStopwords[wordList], deleteWordList]]
POSTED BY: Rohit Namjoshi
Posted 5 years ago

Andrew,

Why can't you just remove the words you want to exclude before generating the WordCloud?

POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract