TransformersTextEmbedding
Text embedding task
Last updated
Text embedding task
Last updated
Subclass of .
This task uses by default with this configuration:
Main methods and properties
name (Optional[str], optional): Name for identification. If equals to None, class name will be used. Defaults to None.
texts (List[str]): Texts to process.
embeddings (Any)
tokenizer (Tokenizer): Tokenizer.
name (Optional[str], optional): Name for identification. If equals to None, class name will be used. Defaults to None.
input_data (Dict[str, Any]): Expected keys:
"texts" (List[str]): Texts to process;
Dict[str, Any]: Expected keys:
"encodings" (Any): Model inputs;
input_data (Dict[str, Any]): Expected keys:
"last_hidden_state" (Any): Model output;
Dict[str, Any]: Expected keys:
"embeddings" (Any);
input_data (Dict[str, Any]): Expected keys:
"embeddings" (Any);
Dict[str, Any]: Expected keys:
"embeddings" (Any);
predictor ([Any, Any], optional): Predictor that will be used in task. If equals to None, will be used. Defaults to None.
preprocess (Optional[], optional): Component executed before predictor. If equals to None, default component will be used. Defaults to None. Default component: If default chain is used, will use AutoTokenizer from predictor model.
postprocess (Optional[], optional): Component executed after predictor. If equals to None, default component will be used. Defaults to None. Default component: |
input_class (Type[], optional): Class for input validation. Defaults to .
output_class (Type[], optional): Class for output validation. Defaults to .
Subclass of .
Subclass of .
Prepare model input. Subclass of . Type of [Dict[str, Any], Dict[str, Any]].
Process model output. Subclass of . Type of [Dict[str, Any], Dict[str, Any]].
Convert embeddings to numpy arrays. Subclass of . Type of [Dict[str, Any], Dict[str, Any]].