Class BaseImageTranslator.ClassificationBuilder<T extends BaseImageTranslator.BaseBuilder>

    • Constructor Detail

      • ClassificationBuilder

        public ClassificationBuilder()
    • Method Detail

      • optSynsetArtifactName

        public T optSynsetArtifactName​(java.lang.String synsetArtifactName)
        Sets the name of the synset file listing the potential classes for an image.
        Parameters:
        synsetArtifactName - a file listing the potential classes for an image
        Returns:
        the builder
      • optSynsetUrl

        public T optSynsetUrl​(java.lang.String synsetUrl)
        Sets the URL of the synset file.
        Parameters:
        synsetUrl - the URL of the synset file
        Returns:
        the builder
      • optSynset

        public T optSynset​(java.util.List<java.lang.String> synset)
        Sets the potential classes for an image.
        Parameters:
        synset - the potential classes for an image
        Returns:
        the builder