Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string word;
- vector<string>::iterator it;
- //first check each term against stopwords
- while(getline(content, line)) {
- // for term in line
- // if term in stopwords, continue
- istringstream iss(line);
- while(iss >> word) {
- //cout << word;
- for(it=stopwords.begin() ; it < stopwords.end(); it++) {
- if (word == *it) {
- continue;
- }
- }
- }
- //cout << line << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement