Sentiment Analysis

Sentiment Analysis เป็นการวิเคราะห์ความรู้สึก และอารมณ์จากข้อความ ที่เป็น
กระบวนการของการระบุและจัดหมวดหมู่ความคิดเห็นที่แสดงในข้อความโดยเฉพาะอย่างยิ่งเพื่อพิจารณาว่าทัศนคติ เช่น ความรู้สึกเชิงบวก (Positive) หรือ ความรู้สึกเชิงลง(Negative) หรือความรู้สึกกลางๆ (Neutral) โดยการใช้ Machine Learning & Python

โหลดข้อมูล โดยมีข้อมูล 24,063 Records

ข้อมูลสรุป

กราฟแสดงข้อมูลจำแนกตามกลุ่ม โดย neu มีจำนวนมากที่สุด

ทดลองตัดตำ โดยใช้ word_tokenize ผลที่ได้ตาม output ด้านล่าง

ค้นหาความยาวของประโยค และแสดงผลการวิเคราะห์ Descriptive

กราฟแสดงข้อมูลจำแนกคำออกไปตามความรู้สึก และอารมณ์

สุ่มเลือก class neu ที่เป็นกลาง

Class อื่นๆ ใช้ทั้งหมด

3 Class มาต่อรวมกันให้เป็น class เดียว

Word2Vec

เป็นอัลกอริทึมสอนคอมพิวเตอร์ให้เรียนรู้ภาษาของมนุษย์ โดยอัลกอริทึม Word2Vec จะเรียนรู้ทิศการดำเนินการแทนของคำ ( learning vector representations of words) ที่เรียกว่า “word embeddings”

ข้อมูลถูกเก็บในรูปแบบ array

ทำเป็น OneHot

แปลงตัวหลังสือเป็นตัวเลข เพื่อเตรียมข้อมูลก่อนนำไปเทรน

Padding

นิยาม และ Compile Model

แยกข้อมูล

Train data

วัดประสิทธิภาพ

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade