Metti in pratica il BoW
Dati i seguenti testi:
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.")
Hai creato un vettore di parole:
word_vector <- c("today", "awesome", "day", "best", "week", "yesterday", "better", "tomorrow").
Qual è una possibile rappresentazione bag-of-words di t3?
Questo esercizio fa parte del corso
Introduzione all'Elaborazione del Linguaggio Naturale in R
Esercizio pratico interattivo
Passa dalla teoria alla pratica con uno dei nostri esercizi interattivi
Inizia esercizio