'Create new Attribute in Weka (String)

So my question is how do I declare a new attribute for weka when all my data is a collection of texts.

My goal is to create new attributes, so that I can use a decision tree algorithm. For example, I want an attribute that Filters for all these Keywords (Winner, Free, Subscription)

ARFF File viewed in Notepad++



Solution 1:[1]

If you are thinking of generating new attributes from the textual data in your STRING attribute, then you can use the StringToWordVector filter.

For general info on handling textual data, have a look at the Text categorization with Weka wiki article.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 fracpete