Class ZooQuestionAnswerPredictor

java.lang.Object
org.apache.camel.component.djl.model.AbstractPredictor
org.apache.camel.component.djl.model.nlp.ZooQuestionAnswerPredictor

public class ZooQuestionAnswerPredictor extends AbstractPredictor
  • Constructor Details

    • ZooQuestionAnswerPredictor

      public ZooQuestionAnswerPredictor(DJLEndpoint endpoint) throws ai.djl.repository.zoo.ModelNotFoundException, ai.djl.MalformedModelException, IOException
      Throws:
      ai.djl.repository.zoo.ModelNotFoundException
      ai.djl.MalformedModelException
      IOException
  • Method Details

    • process

      public void process(org.apache.camel.Exchange exchange) throws Exception
      Specified by:
      process in class AbstractPredictor
      Throws:
      Exception
    • predict

      protected String predict(org.apache.camel.Exchange exchange, ai.djl.modality.nlp.qa.QAInput input)