A2Z : Word Counting
This week's class we learned about word counting. I used the article about Rama IX from wikipedia and here is the top used words in the article.
I wanted to compared 2 articles about Rama IX in both Thai and English from the same source. So I uploaded the Thai version to p5 and what I learned from trying out the existing code on the Thai transcript version is that It didn’t work at all - it gave me back only English word counts :(
I went back to check the uploaded file again and apparent that you also can’t upload Thai transcript to p5 by just add file but you have to hard copy it directly to p5 by yourself. I tried with the existing code again but it still didn’t work…
I learned in from some comment online and saw Lynn’s example that she was using regex to find the new pattern to split the word in Korean though I seriously still didn’t know how to start with Thai since Thai didn’t have any space between words and Thai’s vowel can’t stand by itself without the letter.
Maybe I just have to put Thai transcript into string and hard code counting it word by word?…😭
Link to p5 code : https://editor.p5js.org/Jay_a_n/sketches/cbRHpLpDF