Class TensorflowImageRecParser

    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.tika.parser.external.ExternalParser

        org.apache.tika.parser.external.ExternalParser.LineConsumer
    • Field Summary

      • Fields inherited from class org.apache.tika.parser.external.ExternalParser

        INPUT_FILE_TOKEN, OUTPUT_FILE_TOKEN
    • Constructor Detail

      • TensorflowImageRecParser

        public TensorflowImageRecParser()
    • Method Detail

      • getSupportedMimes

        public Set<org.apache.tika.mime.MediaType> getSupportedMimes()
        Description copied from interface: ObjectRecogniser
        The mimes supported by this recogniser
        Specified by:
        getSupportedMimes in interface ObjectRecogniser
        Returns:
        set of mediatypes
      • isAvailable

        public boolean isAvailable()
        Description copied from interface: ObjectRecogniser
        Is this service available
        Specified by:
        isAvailable in interface ObjectRecogniser
        Returns:
        true when the service is available, false otherwise
      • initialize

        public void initialize​(Map<String,​org.apache.tika.config.Param> params)
                        throws org.apache.tika.exception.TikaConfigException
        Description copied from interface: ObjectRecogniser
        This is the hook for configuring the recogniser
        Specified by:
        initialize in interface org.apache.tika.config.Initializable
        Specified by:
        initialize in interface ObjectRecogniser
        Parameters:
        params - configuration instance in the form of context
        Throws:
        org.apache.tika.exception.TikaConfigException - when there is an issue with configuration
      • checkInitialization

        public void checkInitialization​(org.apache.tika.config.InitializableProblemHandler handler)
                                 throws org.apache.tika.exception.TikaConfigException
        Specified by:
        checkInitialization in interface org.apache.tika.config.Initializable
        Throws:
        org.apache.tika.exception.TikaConfigException