public abstract static class BaseImageTranslator.ClassificationBuilder<T extends BaseImageTranslator.BaseBuilder> extends BaseImageTranslator.BaseBuilder<T>
ImageClassificationTranslator.| Modifier and Type | Field and Description |
|---|---|
protected BaseImageTranslator.SynsetLoader |
synsetLoader |
batchifier, flag, pipeline| Constructor and Description |
|---|
ClassificationBuilder() |
| Modifier and Type | Method and Description |
|---|---|
T |
optSynset(java.util.List<java.lang.String> synset)
Sets the potential classes for an image.
|
T |
optSynsetArtifactName(java.lang.String synsetArtifactName)
Sets the name of the synset file listing the potential classes for an image.
|
T |
optSynsetUrl(java.net.URL synsetUrl)
Sets the URL of the synset file.
|
protected void |
validate() |
addTransform, optBatchifier, optFlag, self, setPipelineprotected BaseImageTranslator.SynsetLoader synsetLoader
public T optSynsetArtifactName(java.lang.String synsetArtifactName)
synsetArtifactName - a file listing the potential classes for an imagepublic T optSynsetUrl(java.net.URL synsetUrl)
synsetUrl - the URL of the synset filepublic T optSynset(java.util.List<java.lang.String> synset)
synset - the potential classes for an imageprotected void validate()
validate in class BaseImageTranslator.BaseBuilder<T extends BaseImageTranslator.BaseBuilder>