Package com.enigmastation.classifier

Examples of com.enigmastation.classifier.ClassifierException


     * @param item the item to be classified; needs to have meaningful toString()
     * @return a meaningful classification.
     */
    public String getClassification(Object item) {
        if (getCategories().size() == 0) {
            throw new ClassifierException();
        }
        ClassifierProbability[] probs = getProbabilities(item);
        ClassifierProbability cp = probs[0];

        for (ClassifierProbability p : probs) {
View Full Code Here


     * @param item the item to be classified; needs to have meaningful toString()
     * @return a meaningful classification.
     */
    public String getClassification(Object item) {
        if (getCategories().size() == 0) {
            throw new ClassifierException("No categories; please train before classification"
                    + " or provide default category.");
        }
        ClassifierProbability[] probs = getProbabilities(item);
        ClassifierProbability cp = probs[0];

View Full Code Here

TOP

Related Classes of com.enigmastation.classifier.ClassifierException

Copyright © 2018 www.massapicom. 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.