how to build stopwords remover in c++?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • khanfrince
    New Member
    • Nov 2015
    • 1

    how to build stopwords remover in c++?

    i want to make stop words remover.
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    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.

    Comment

    Working...