AI/NLP ๐ฃ
[NLP] BoW(Bag of words)
Bag of Words ๋จ์ด ๋ฐ ๋ฌธ์๋ฅผ ์ซ์ํํ๋ก ๋ํ๋ด๋ ๊ฐ์ฅ ๊ฐ๋จํ ๊ธฐ๋ฒ์ผ๋ก์ TextMining ๋ถ์ผ์์ ๋ฅ๋ฌ๋ ๊ธฐ์ ์ด ์ ์ฉ๋๊ธฐ ์ด์ ์ ๋ง์ด ํ์ฉ๋๋ ๋ฐฉ์์ด๋ผ๊ณ ํ๋ค. Step 1. Constructing the vocabulary containing unique words Example sentences: "John really really loves this movie", "Jane really likes this song" ์ด ๋ฌธ์ฅ์์ really์ this๋ ์ค๋ณต๋๊ธฐ์ ํ ๋ฒ๋ง ํฌํจํ๋ฉด ๋๋ค. Vocabulary: {"John", "really", "loves", "this", "movie", "Jane", "likes", "song"} Step 2. Encoding unique words ..