so I'm trying to create a new Attribute line using weka java API ...
looking through the javadocs API, it seems like a way to do this is to use this constructor:
Attribute
public Attribute(java.lang.String attributeName,
FastVector attributeValues)
Constructor for nominal attributes and string attributes. If a null vector of attribute values is passed to the method, the attribute is assumed to be a string.
Parameters:
attributeName - the name for the attribute
attributeValues - a vector of strings denoting the attribute values. Null if the attribute is a string attribute.
but I am fixated on what I need to pass to attributeValues โโ...
when I put zero, Java complains about protected objects
when I put Null, this is a syntax error
when I insert new FastVector(), it becomes a nominal attribute, which is empty and not a string attribute ...
when I create a new object:
FastVector fv = new FastVector();
fv.addElement(null);
and then pass fv to the argument, it returns a null pointer exception ...
what exactly should be placed in the attributeValues โโargument so that it becomes a string attribute?