File size: 432 Bytes
ac36e20
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)