Coding Challenge #40.2: Word Counter in Processing
In this challenge, we build a word counting (concordance) application, and visualize the frequency of each word using variable font size! We also implement the TF-IDF algorithm Code: https://thecodingtrain.com/challenges/40-word-counter
p5.js Web Editor Sketches:
?️ Part 1 - Word Counter in p5js: https://editor.p5js.org/codingtrain/sketches/icFi8MF7N
?️ Part 3 - Implementation of TF-IDF: https://editor.p5js.org/codingtrain/sketches/u0C4FV8sg
Other Parts of this Challenge:
? Word Counter in JavaScript: https://youtu.be/unm0BLor8aE
? TF-IDF: https://youtu.be/RPMYV-eb6lI
? Previous: https://youtu.be/ziBO-U2_t3k?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
? Next: https://youtu.be/aKiyCeIuwn4?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
? All: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
? ITP from Tisch School of the Arts: https://tisch.nyu.edu/itp
?️ TF-IDF: https://en.wikipedia.org/wiki/Tf%E2%80%93idf
Related Coding Challenges:
? 44 AFINN-111 Sentiment Analysis: https://youtu.be/uw3GbsY_Pbc
? 43 Context-Free Grammar: https://youtu.be/8Z9FRiW2Jlc
? 42 Markov Chain Name Generator: https://youtu.be/eGFJ8vugIWA
? 39 Mad Libs Generator: https://youtu.be/ziBO-U2_t3k
? 37 Diastic Machine: https://youtu.be/u-HUtrpyi1c
? 48 White House Social Media Data Visualization: https://youtu.be/UrznYJltZrU
? 84 Word Definition Chrome Extension: https://youtu.be/GWDx1GnxhOw
? 75 Wikipedia API: https://youtu.be/RPz75gcHj18
Timestamps:
0:00 Introduction
0:25 Dictionary in Processing
1:10 Load text file and split them into words
3:10 Implementing the algorithm
3:40 Let's look at IntDict reference
6:10 Iterate through the array
7:50 A little bit of debugging
8:30 Setting the font-size according to the word count
9:20 Thank you!
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
? Website: https://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
#wordcounting #visualization #tfidf #p5js #processing #javascript #java
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Coding Challenge #40.2: Word Counter in Processing», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.