Sentence Similarity
sentence-transformers
Safetensors
French
french
semantic-similarity
deduplication
paraphrase-detection
text-classification
Instructions to use France-ML/French-semantic-engine with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use France-ML/French-semantic-engine with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("France-ML/French-semantic-engine") sentences = [ "C'est une personne heureuse", "C'est un chien heureux", "C'est une personne très heureuse", "Aujourd'hui est une journée ensoleillée" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download stage1/modules.json from France-ML/French-semantic-engine: direct link, hf CLI and curl.
- Browser
- Download file 277 Bytes
-
https://huggingface.co/France-ML/French-semantic-engine/resolve/main/stage1/modules.json
- Command line
-
hf download hf://France-ML/French-semantic-engine/stage1/modules.json
-
curl -L -o modules.json https://huggingface.co/France-ML/French-semantic-engine/resolve/main/stage1/modules.json
277 Bytes
| [ | |
| { | |
| "idx": 0, | |
| "name": "0", | |
| "path": "", | |
| "type": "sentence_transformers.base.modules.transformer.Transformer" | |
| }, | |
| { | |
| "idx": 1, | |
| "name": "1", | |
| "path": "1_Pooling", | |
| "type": "sentence_transformers.sentence_transformer.modules.pooling.Pooling" | |
| } | |
| ] |