![JAR search and dependency download from the Maven repository](/logo.png)
com.ontotext.s4.model.classification.ClassificationCategory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of s4-client Show documentation
Show all versions of s4-client Show documentation
The Self-Service Semantic Suite (S4) provides a set of services for low-cost,
on-demand text analytics and metadata management in the cloud.
The newest version!
/*
* S4 Java client library
* Copyright 2016 Ontotext AD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ontotext.s4.model.classification;
/**
* A single categorization entry containing the category label and the confidence score.
*/
public class ClassificationCategory {
/**
* The preferred label of the classification category
*/
private String label;
/**
* The confidence score of the classification category (0-100)
*/
private double score;
public ClassificationCategory() {
}
public ClassificationCategory(String category, double confidence) {
this.label = category;
this.score = confidence;
}
public String getLabel() {
return this.label;
}
public void setLabel(String category) {
this.label = category;
}
public double getScore() {
return this.score;
}
public void setScore(double confidence) {
this.score = confidence;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy