
clarifai2.dto.model.ConceptModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Clarifai Java API Client
The newest version!
package clarifai2.dto.model;
import clarifai2.api.ClarifaiClient;
import clarifai2.api.request.model.ModifyModelRequest;
import clarifai2.api.request.model.PatchModelRequest;
import clarifai2.dto.model.output_info.ConceptOutputInfo;
import clarifai2.dto.prediction.Concept;
import com.google.auto.value.AutoValue;
import org.jetbrains.annotations.NotNull;
@SuppressWarnings("NullableProblems")
@AutoValue
public abstract class ConceptModel extends Model {
ConceptModel() {} // AutoValue instances only
/**
* @see ClarifaiClient#mergeConceptsForModel(String)
* @deprecated use {@link #modify()}
*/
@Deprecated
@NotNull
public final PatchModelRequest mergeConcepts() {
return client().mergeConceptsForModel(id());
}
/**
* @see ClarifaiClient#setConceptsForModel(String)
* @deprecated use {@link #modify()}
*/
@Deprecated
@NotNull
public final PatchModelRequest setConcepts() {
return client().setConceptsForModel(id());
}
/**
* @see ClarifaiClient#removeConceptsForModel(String)
* @deprecated use {@link #modify()}
*/
@Deprecated
@NotNull
public final PatchModelRequest removeConcepts() {
return client().removeConceptsForModel(id());
}
@NotNull public final ModifyModelRequest modify() {
return client().modifyModel(id());
}
@NotNull @Override public final ModelType modelType() { return modelTypeStatic(); }
public static ModelType modelTypeStatic() { return ModelType.CONCEPT; }
@SuppressWarnings("ConstantConditions")
@NotNull
@Override
public final ConceptOutputInfo outputInfo() {
return (ConceptOutputInfo) super.outputInfo();
}
@AutoValue.Builder
public interface Builder extends Model.Builder {
@NotNull @Override ConceptModel build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy