Package ai.djl.pytorch.zoo.nlp.qa
Class PtBertQATranslator.Builder
- java.lang.Object
-
- ai.djl.modality.nlp.translator.QATranslator.BaseBuilder<PtBertQATranslator.Builder>
-
- ai.djl.pytorch.zoo.nlp.qa.PtBertQATranslator.Builder
-
- Enclosing class:
- PtBertQATranslator
public static class PtBertQATranslator.Builder extends ai.djl.modality.nlp.translator.QATranslator.BaseBuilder<PtBertQATranslator.Builder>
The builder for Bert QA translator.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PtBertQATranslator
build()
Builds the translator.protected PtBertQATranslator.Builder
self()
Returns the builder.
-
-
-
Method Detail
-
self
protected PtBertQATranslator.Builder self()
Returns the builder.- Specified by:
self
in classai.djl.modality.nlp.translator.QATranslator.BaseBuilder<PtBertQATranslator.Builder>
- Returns:
- the builder
-
build
protected PtBertQATranslator build()
Builds the translator.- Returns:
- the new translator
-
-