//clika-runtime/io.clika.modelverse/FeatureExtractionPipeline
FeatureExtractionPipeline
[common]
class FeatureExtractionPipeline : Pipeline
Text embeddings over an EmbeddingModel: a text answers its vector, a list of texts one vector each, in order (feature-extraction and its alias sentence-similarity).
Properties
| Name | Summary |
|---|---|
| model | [common] open override val model: EmbeddingModel The loaded model the pipeline runs. |
| task | [common] val task: String The task the pipeline serves, in transformers' spelling. |
Functions
| Name | Summary |
|---|---|
| close | [common] open fun close(): <Error class: unknown class> |
| invoke | [common] operator fun invoke(text: String): FloatArray operator fun invoke(texts: List<String>): List<FloatArray> |