Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. string word;
  2. vector<string>::iterator it;
  3.  
  4. //first check each term against stopwords
  5.  
  6. while(getline(content, line)) {
  7.  
  8. // for term in line
  9. // if term in stopwords, continue
  10.  
  11. istringstream iss(line);
  12.  
  13. while(iss >> word) {
  14. //cout << word;
  15. for(it=stopwords.begin() ; it < stopwords.end(); it++) {
  16. if (word == *it) {
  17. continue;
  18. }
  19. }
  20. }
  21. //cout << line << endl;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement