As presented, the bag-of-words representation treats every individual word as a term, discarding word order entirely.A next step up in com‐ plexity is to include sequences of adjacent words as terms.
“The quick brown fox jumps.” it would be transformed into the set of its constitutent words {quick, brown, fox, jumps}, plus the tokens quick_brown, brown_fox, and fox_jumps.