sipmen / app /constants.py
calvin-vin's picture
feat: berita
ac36e20
raw
history blame
No virus
432 Bytes
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)