Hallo Guys,
Jumpa lagi dengan saya… 🙂
Pada artikel kali ini saya mau berbagi pengalaman dari proyek pribadi saya. Walaupun proyek ini masih dalam tahap pengembangan, mungkin ada diantara kalian yang mau berpartisipasi untuk mengembangkannya lebih serius hingga proyek ini bisa bermanfaat buat banyak orang.
Seperti kita semua sudah merasakan dan mengalaminya, di era informasi digital saat ini, data menjadi inti dari keputusan investasi, baik di pasar saham dan forex. Menganalisis sentimen pasar merupakan salah satu cara yang sangat berguna untuk memahami pergerakan harga saham atau mata uang. Dalam proyek ini, kita akan menjelajahi langkah-langkah untuk melakukan News Sentiment Analysis pada data pasar keuangan menggunakan Python.
Apa Itu “News Sentiment Analysis” ?
News Sentiment Analysis atau Analisis Sentimen Berita adalah teknik pemrosesan bahasa alami yang digunakan untuk mengekstrak dan menilai sentimen atau pendapat dari teks berita atau news. Dalam konteks pasar keuangan, ini berarti menganalisis opini, berita, atau tweet untuk memahami emosi atau sentimen investor terhadap suatu aset.
Apa saja langkah-langkah utama dalam Proyek Ini ?
Tentu saja diperlukan beberapa langkah atau tahapan dalam mengerjakan proyek ini. Berikut adalah gambaran umum dari tahapan pengerjaan proyek ini:
- Pengumpulan Data: Mengumpulkan data dari sumber-sumber seperti Twitter, situs berita keuangan, atau platform khusus yang menyediakan data sentiment terkait pasar. Tapi dalam proyek ini, kami menggunakan teknik pengumpulan data menggunakan ‘web scraping‘. Website yang menjadi target adalah https://www.forexfactory.com/calendar.
- Preprocessing Data: Membersihkan dan mempersiapkan data untuk analisis, termasuk langkah-langkah seperti menghapus kolom yang tidak digunakan, menghilangkan karakter (stop words, symbols), mengkonversi data, dan normalisasi teks.
- Analisis Sentimen: Menggunakan algoritma atau model machine learning untuk mengevaluasi sentimen berita, seperti Logistic Regression, Random Forest, atau teknik Pipeline.
- Visualisasi Hasil: Menampilkan hasil analisis dalam bentuk grafik atau visualisasi yang dapat dimengerti untuk mendapatkan wawasan yang lebih dalam.
- Membangun Machine Learning: Memprediksi sentimen berita secara manual dapat memakan waktu dan rentan terhadap bias subjektif. Dengan Machine Learning, kita dapat memanfaatkan algoritma untuk secara otomatis menganalisis teks berita, mengekstrak pola, dan memprediksi sentimen dengan tingkat akurasi yang cukup tinggi.
Langkah-langkah tersebut akan saya jelaskan lebih detil nanti.
Apa saja alat (tools) dan bahasa pemrograman yang digunakan ?
Dalam proyek ini, kita akan menggunakan Python sebagai bahasa pemrograman utama, dan beberapa library seperti:
- NLTK (Natural Language Toolkit), untuk melakukan preprocessing pada teks.
- Scikit-learn, Untuk pembangunan model Sentiment Analysis.
- Pandas dan Matplotlib/Seaborn, untuk manipulasi data dan visualisasi.
Saya akan jelaskan step-by-step menggunakan Python untuk proyek ini.
OK, penasaran…seperti apa proyek ini ? Yuk, lanjut ke Part #2.
Tapi sebelum itu, biar makin semangat, kita nonton bule’ orang Prancis nyanyi lagu Indonesia, “Separuh Nafas – DEWA 19”.
Colmar, 18 Dec 2023, Winter

Thanks for a marvelous posting! I actually enjoyed reading it, you can be a great author. I will make certain to bookmark your blog and definitely will come back down the road. I want to encourage yourself to continue your great writing, have a nice holiday weekend!
I simply couldn’t go away your web site prior to suggesting that I extremely enjoyed the standard information a person supply to your visitors? Is gonna be back regularly to inspect new posts
Undeniably believe that that you said. Your favourite reason seemed to be on the internet the easiest factor to take into accout of. I say to you, I definitely get annoyed even as other people think about concerns that they plainly do not recognize about. You managed to hit the nail upon the top as well as defined out the entire thing with no need side-effects , other people can take a signal. Will likely be again to get more. Thanks
It’s hard to find knowledgeable people for this subject, but you seem like you know what you’re talking about! Thanks
Hi, i read your blog from time to time and i own a similar one and i was just wondering if you get a lot of spam responses? If so how do you prevent it, any plugin or anything you can recommend? I get so much lately it’s driving me insane so any support is very much appreciated.
Thanks for ones marvelous posting! I actually enjoyed reading it, you’re a great author. I will always bookmark your blog and will eventually come back later in life. I want to encourage yourself to continue your great posts, have a nice morning!
What’s up to all, as I am truly keen of reading this weblog’s post to be updated daily. It contains nice stuff.
Hi, I think your website could be having internet browser compatibility issues. When I look at your blog in Safari, it looks fine but when opening in I.E., it has some overlapping issues. I merely wanted to provide you with a quick heads up! Aside from that, excellent website!
of course like your web site but you have to take a look at the spelling on quite a few of your posts. Several of them are rife with spelling problems and I in finding it very troublesome to inform the truth then again I’ll certainly come again again.
Excellent way of explaining, and good paragraph to take information about my presentation focus, which i am going to deliver in institution of higher education.
When someone writes an piece of writing he/she keeps the thought of a user in his/her brain that how a user can understand it. Therefore that’s why this piece of writing is perfect. Thanks!
Wow, this post is pleasant, my younger sister is analyzing such things, thus I am going to tell her.
An intriguing discussion is worth comment. I do think that you need to publish more about this subject, it may not be a taboo subject but generally people don’t talk about such topics. To the next! Kind regards!!
First off I want to say great blog! I had a quick question in which I’d like to ask if you don’t mind. I was interested to know how you center yourself and clear your head before writing. I’ve had a tough time clearing my thoughts in getting my ideas out. I do enjoy writing however it just seems like the first 10 to 15 minutes are wasted just trying to figure out how to begin. Any suggestions or tips? Thanks!
Hey! This is my 1st comment here so I just wanted to give a quick shout out and tell you I truly enjoy reading your blog posts. Can you suggest any other blogs/websites/forums that go over the same subjects? Thanks a lot!
I enjoyed reading this article. Thanks for sharing your insights.
I enjoyed reading this article. Thanks for sharing your insights.
Hello, Jack speaking. I’ve bookmarked your site and make it a habit to check in daily. The information is top-notch, and I appreciate your efforts.