Skip to main content Skip to complementary content

Calculating the weight of a word in each message

Availability-noteDeprecated

Procedure

  1. Double-click the tModelEncoder component labelled tf to open its Component view.
  2. Repeat the operations described previously over the tModelEncoder labelled Tokenizer to add the sms_tf_vect column of the Vector type to the output schema and define the transformation as displayed in the image above.
    In this transformation, tModelEncoder uses HashingTF to convert the already tokenized SMS messages into fixed-length (15 in this scenario) feature vectors to reflect the importance of a word in each SMS message.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!