ÎncepețiÎncepe gratuit

Exersează BoW

Fie următoarele texte:

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

Ai creat un vector de cuvinte:

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

Care este o posibilă reprezentare bag-of-words a lui t3?

Acest exercițiu face parte din cursul

Introducere în Prelucrarea Limbajului Natural în R

Vezi cursul

Exercițiu interactiv practic

Transformă teoria în practică cu unul dintre exercițiile noastre interactive

Începe exercițiul