練習 BoW
給定以下文本:
t1 <- c("Today will be an awesome day. The best day of the week")t2 <- c("Yesterday was an awesome day. Better than today.")t3 <- c("Tomorrow will be the best day. Better than yesterday and today.")
你已建立一個單字向量:
word_vector <- c("today", "awesome", "day", "best", "week", "yesterday", "better", "tomorrow")。
t3 的其中一種可能的 bag-of-words 向量表示為何?
本練習屬於課程
