Class BaseInferenceCommand

    • Constructor Detail

      • BaseInferenceCommand

        public BaseInferenceCommand()
    • Method Detail

      • executeRequest

        protected abstract CommonResponse executeRequest​(MindeeClient client,
                                                         LocalInputSource inputSource)
                                                  throws Exception
        Executes the inference request and returns the product response.
        Parameters:
        client - the V2 Mindee client
        inputSource - the prepared local input source
        Returns:
        the product response
        Throws:
        Exception - on IO or API error
      • getSummary

        protected abstract String getSummary​(CommonResponse response)
        Returns the summary (result-only) string for the given response. Override in each product command.
        Parameters:
        response - the product response
        Returns:
        the summary string