Sentence Similarity
sentence-transformers
Safetensors
xlm-roberta
product-similarity
product-embeddings
weak-supervision
text-embeddings-inference
Instructions to use beno-rohman/product-embedding-e5-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use beno-rohman/product-embedding-e5-base with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("beno-rohman/product-embedding-e5-base") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download training/examples/challenges.jsonl from beno-rohman/product-embedding-e5-base: direct link, hf CLI and curl.
- Browser
- Download file 433 Bytes
-
https://huggingface.co/beno-rohman/product-embedding-e5-base/resolve/main/training/examples/challenges.jsonl
- Command line
-
hf download hf://beno-rohman/product-embedding-e5-base/training/examples/challenges.jsonl
-
curl -L -o challenges.jsonl https://huggingface.co/beno-rohman/product-embedding-e5-base/resolve/main/training/examples/challenges.jsonl
433 Bytes
| {"left": "Samsung Galaxy S8", "right": "Samsung S8 Android Smartphone", "label": 1, "group": "identity"} | |
| {"left": "Samsung Galaxy S8", "right": "Samsung S8 Protective Case", "label": 0, "group": "accessory"} | |
| {"left": "Samsung Galaxy S8 64GB", "right": "Samsung Galaxy S8 128GB", "label": 0, "group": "capacity"} | |
| {"left": "ponsel Samsung Galaxy S8", "right": "Samsung Galaxy S8 smartphone", "label": 1, "group": "indonesian-english"} | |