HubCloneHubClone
Tasks

Feature Extraction

Feature extraction turns text into numeric vectors that capture its meaning for downstream models.

Inputs

Input

Rivers carve canyons over millions of years.

Feature Extraction Model

Output

Output

[0.124, -0.381, 0.052, 0.917, -0.226, … 768 values]

About Feature Extraction

Feature extraction turns text into numeric vectors that capture its meaning for downstream models. Browse feature extraction models on HubClone to compare checkpoints, or open a Space to try one in the browser.

Use Cases

Index documents by meaning rather than keywords.

Clustering

Group support tickets with similar topics.

Inference

The Transformers pipeline API runs feature extraction models in a few lines. Replace <model-id> with any model listed on this page.

from transformers import pipeline

pipe = pipeline("feature-extraction", model="<model-id>")
pipe("Rivers carve canyons over millions of years.")

Useful Resources

Want to dig deeper into the topic? Great! Here is a hand-picked list of resources we found helpful.

Documentation

  • Feature Extraction task guide
  • Pipelines reference

Notebooks

  • Fine-tuning a feature extraction model