By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,988 Members | 1,360 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,988 IT Pros & Developers. It's quick & easy.

how to build stopwords remover in c++?

P: 1
i want to make stop words remover.
Nov 3 '15 #1
Share this Question
Share on Google+
1 Reply


weaknessforcats
Expert Mod 5K+
P: 9,197
Since it's C++, I would use the C++ Standard Template Library and process my natural language input into a vector<string>. The stop words would be in a set<string>. Then just process the vector<string> from begin()to end()testing each string to be a member of set<string>. If it is, delete the string from the vector.

This would be just a few lines of code.
Nov 3 '15 #2

Post your reply

Sign in to post your reply or Sign up for a free account.