Package ai.djl.huggingface.translator
Class ZeroShotClassificationTranslator.Builder
java.lang.Object
ai.djl.huggingface.translator.ZeroShotClassificationTranslator.Builder
- Enclosing class:
- ZeroShotClassificationTranslator
The builder for zero-shot classification translator.
-
Method Details
-
optInt32
Sets if use int32 datatype for theTranslator.- Parameters:
int32- true to include token types- Returns:
- this builder
-
configure
Configures the builder with the model arguments.- Parameters:
arguments- the model arguments
-
build
Builds the translator.- Returns:
- the new translator
- Throws:
IOException- if I/O error occurs
-