from Sastrawi.StopWordRemover.StopWordRemoverFactory import StopWordRemoverFactory, StopWordRemover, ArrayDictionary MEDIA = [ 'seputarbabel.com', 'suarababel.com', 'alineanews.com' ] more_stop_word = [m.replace('.', '') for m in MEDIA] stop_words = StopWordRemoverFactory().get_stop_words() stop_words.extend(more_stop_word) new_array = ArrayDictionary(stop_words) STOP_WORDS_REMOVER_NEW = StopWordRemover(new_array)