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

Subscribers:
1,750,000
Published on ● Video Link: https://www.youtube.com/watch?v=uw3GbsY_Pbc



Duration: 12:49
32,734 views
416


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 2: https://youtu.be/VV1JmMYceJw

đŸŽĨ 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=2082s

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:16 Describe sentiment analysis techniques
1:10 Introduce the AFINN-111 list
1:37 Explain the AFINN-111 technique
3:28 Download AFINN-111 list
4:32 Process the list with a p5 sketch
5:32 Load `.txt` file as a table
6:30 Iterate through the rows
7:32 Extract word and score
8:24 Debug parsing logic
9:42 Create an object with words and scores
10:50 Save object to a JSON file
12:10 Conclude the coding challenge

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

🚂 Website: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
💡 GitHub: https://github.com/CodingTrain
đŸ’Ŧ Discord: https://thecodingtrain.com/discord
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
đŸ–‹ī¸ Twitter: https://twitter.com/thecodingtrain
📸 Instagram: https://www.instagram.com/the.coding.train/

đŸŽĨ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
đŸŽĨ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

🔗 p5.js: https://p5js.org
🔗 p5.js Web Editor: https://editor.p5js.org/
🔗 Processing: https://processing.org

📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new

#sentimentanalysis #afinn111 #javascript #p5js







Tags:
JavaScript (Programming Language)
live
programming
daniel shiffman
creative coding
p5.js
coding challenge
p5.js tutorial
p5js
javascript (programming language)
tutorial
javascript
algorithms
javascript string object
js string object
programming from a to z
api
rest api
restful api
node json
nodejs json
node.js json
sentiment analysis
afinn-111
afinn
tsv
tsv to json