Class QATranslator

java.lang.Object
ai.djl.modality.nlp.translator.QATranslator
All Implemented Interfaces:
PostProcessor<String>, PreProcessor<QAInput>, Translator<QAInput,String>

public abstract class QATranslator extends Object implements Translator<QAInput,String>
An abstract class to define the question answering translator.
  • Field Details

    • batchifier

      protected Batchifier batchifier
    • tokenizerName

      protected String tokenizerName
    • vocab

      protected String vocab
    • locale

      protected Locale locale
    • toLowerCase

      protected boolean toLowerCase
    • includeTokenTypes

      protected boolean includeTokenTypes
    • padding

      protected boolean padding
    • truncation

      protected boolean truncation
    • maxLength

      protected int maxLength
    • maxLabels

      protected int maxLabels
  • Constructor Details

  • Method Details