CommencerCommencez gratuitement

S’entraîner avec BoW

Étant donné les textes suivants :

  • 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.")

Vous avez créé un vecteur de mots :

word_vector <- c("today", "awesome", "day", "best", "week", "yesterday", "better", "tomorrow").

Quelle est une représentation possible en sac de mots (bag-of-words) de t3 ?

Cet exercice fait partie du cours

<cours>Introduction au Natural Language Processing en R</cours>
Voir le cours

Exercice interactif pratique

Transformez la théorie en action avec l’un de nos exercices interactifs

Commencer l’exercice