From 74da24faa2904b4961f3aef3d0da24b73cae687b Mon Sep 17 00:00:00 2001 From: Jieyab89 Date: Wed, 12 Aug 2026 00:07:32 +0700 Subject: [PATCH] add lexicon dict from my local dataset --- Script/SOCMINT-Twitter/sentiment.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Script/SOCMINT-Twitter/sentiment.py b/Script/SOCMINT-Twitter/sentiment.py index 3caf043..59246c5 100644 --- a/Script/SOCMINT-Twitter/sentiment.py +++ b/Script/SOCMINT-Twitter/sentiment.py @@ -138,7 +138,16 @@ NEGATIVE_WORDS = { "kenthu", "komdonggo", "komdungu", "kolot", "wowok", "cok", "cokil", "jancok", "jiancuk", "jancook", "ancok", "ancook", "coli", "nyoli", "oten", "0ten", "ten oten", "kadrun", "drun", - "k4drun", + "k4drun", "bgst", "bangset", "jingan", "bgsd", "antek2", "antek", + "carut marut", "parcok", "parjo", "BUZZER", "buzzer", "buzer", + "kimbek", "bodat", "lapet", "muncung kau", "pukimai", "babi", + "setan", "khuontol", "khontol", "ngacau", "gemblung", "ancur", + "anjj", "anj", "wowi", "owi", "owok", "wok", "suram", "ecek2", + "ecek ecek", "anak abah", "najis", "bunted", "modar", "modyar", + "lud4h", "gblk", "zionis", "laknat", "provokasi", "provokator", + "zionist", "bodo", "ludahi", "ludahin", "penjajah", "pajet", + "pajeet", "cemoohan", "cemooh", "rusuh", "barbar", "paj3t", + "cuih", "ngibul", "boong", } # Flips the polarity of a sentiment word found within NEGATION_WINDOW tokens