Liking cljdoc? Tell your friends :D
Clojure only.

easy-onnx.embed.text

Text-specific embedding helpers. Currently sentence-transformer-shaped (input names: input_ids, attention_mask, token_type_ids; output: last_hidden_state, mean-pooled against the attention mask).

Text-specific embedding helpers. Currently sentence-transformer-shaped
(input names: input_ids, attention_mask, token_type_ids; output:
last_hidden_state, mean-pooled against the attention mask).
raw docstring

embedclj

(embed {:keys [runtime tokenizer]} text)

Generate an embedding (float[]) for text via mean-pooling. deps is a map of {:runtime <Session>, :tokenizer <Tokenizer>}.

Generate an embedding (float[]) for `text` via mean-pooling.
`deps` is a map of {:runtime <Session>, :tokenizer <Tokenizer>}.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close