Package weka.core

Examples of weka.core.Attribute.index()


        Attribute stringAttr = instanceInfo.attribute(stringAttributeName);
        if (stringAttr == null) {
            throw new IllegalStateException("Attribute " + stringAttributeName + " does not exist");
        }

        this.setAttributeIndicesArray(new int[]{stringAttr.index()});

        return super.setInputFormat(instanceInfo);
    }

    public String getStringAttributeName() {
View Full Code Here


            throw new IllegalStateException("String attribute name not set");
        }

        //Lookup the selected attribute
        Attribute stringAttr = inputFormat.attribute(selectedAttributeName);
        selectedAttributeIndex = stringAttr.index();

        //Read the stopwords
        stopwords = this.prepareStopwords();

        //Tokenize all documents
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.