tubeshowcaseโ—1,059,439 videosโ™ก My collection 0
โ† Learn to Code

Learn to Code16:35

Coding Challenge #44: AFINN-111 Sentiment Analysis - Part 2

The Coding Train โ†—

From the creator

In this multi-part coding challenge I implement sentiment analysis using the AFINN-111 word list. Code: https://thecodingtrain.com/challenges/44-afinn-111-sentiment-analysis ๐Ÿ•น๏ธ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/aNeMdpy-b Other Parts of this Challenge: ๐Ÿ“บ AFINN-111 Sentiment Analysis - Part 1: https://youtu.be/uw3GbsY_Pbc ๐ŸŽฅ Previous video: https://youtu.be/8Z9FRiW2Jlc?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH ๐ŸŽฅ Next video: https://youtu.be/RUSvMxxm_Jo?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH ๐ŸŽฅ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH References: ๐Ÿ”— AFINN: http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6010 ๐Ÿ”— Node.js: https://nodejs.org/ ๐Ÿ”— Express.js: http://expressjs.com/ Livestream Archive: ๐Ÿ”ด Coding Train Live 68: https://youtu.be/lCzB9V9L8d0?t=3059s Related Coding Challenges: ๐Ÿš‚ #42 Markov Chain Name Generator: https://youtu.be/eGFJ8vugIWA ๐Ÿš‚ #48 White House Social Media Data Visualization: https://youtu.be/UrznYJltZrU Timestamps: 0:00 Introduce the coding challenge 0:08 Load `.json` file 0:35 Add markup to receive input text 2:15 Track `textarea` in JavaScript 3:39 Split text with a regular expression 5:05 Consider the `textarea` value 5:42 Iterate through the array of words 5:57 Consider word capitalization 6:30 Check if the AFINN list includes the word 7:48 Increase score counter 8:00 Add markup to display values 8:30 Display score 8:55 Display comparative score 9:15 Display wor

Published 2016-12-02 ยท Watch on YouTube โ†—
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code