Package ai.djl.huggingface.translator
Class PretrainedConfig
java.lang.Object
ai.djl.huggingface.translator.PretrainedConfig
A class representing HuggingFace config.json file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetId2label(Map<String, String> id2label) Sets the id to label map.voidsetProblemType(String problemType) Sets the problem type.
-
Constructor Details
-
PretrainedConfig
public PretrainedConfig()
-
-
Method Details
-
setProblemType
Sets the problem type.- Parameters:
problemType- the problem type
-
setId2label
Sets the id to label map.- Parameters:
id2label- the id to label map
-