def load_stop_words(stop_word_file):
 stop_words = []
 for line in open(stop_word_file):
  if (line.strip()[0:1] != '#'):
   for word in line.split():
    stop_words.append(word)
 return stop_words

def load_stop_words ( stop_word_file ) : stop_words = [ ] for line in open ( stop_word_file ) : if ( line . strip ( ) [ 0 : 1 ] != '#' ) : for word in line . split ( ) : stop_words . append ( word ) return stop_words
utility function to load stop words from a file and return as a list of words .