Sentence Similarity
sentence-transformers
PyTorch
Transformers
English
t5
text-embedding
embeddings
information-retrieval
beir
text-classification
language-model
text-clustering
text-semantic-similarity
text-evaluation
prompt-retrieval
text-reranking
feature-extraction
English
Sentence Similarity
natural_questions
ms_marco
fever
hotpot_qa
mteb
Eval Results
Inference Endpoints
Upload README.md
Browse files
README.md
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
pipeline_tag: sentence-similarity
|
3 |
+
language: en
|
4 |
+
license: apache-2.0
|
5 |
+
tags:
|
6 |
+
- sentence-transformers
|
7 |
+
- feature-extraction
|
8 |
+
- sentence-similarity
|
9 |
+
- transformers
|
10 |
+
---
|
11 |
+
|
12 |
+
# hku-nlp/instructor-base
|
13 |
+
This is a general embedding model: It maps sentences & paragraphs to a 768 dimensional dense vector space.
|
14 |
+
The model was trained on diverse tasks.
|
15 |
+
It takes customized instructions and text inputs, and generates task-specific embeddings for general purposes, e.g., information retrieval, classification, clustering, etc.
|
16 |
+
```
|
17 |
+
git clone https://github.com/HKUNLP/instructor-embedding
|
18 |
+
cd sentence-transformers
|
19 |
+
pip instal -e .
|
20 |
+
```
|
21 |
+
Then you can use the model like this:
|
22 |
+
```python
|
23 |
+
from sentence_transformers import SentenceTransformer
|
24 |
+
sentence = "3D ActionSLAM: wearable person tracking in multi-floor environments"
|
25 |
+
instruction = "Represent the Science title; Input:"
|
26 |
+
model = SentenceTransformer('instructor-xl')
|
27 |
+
embeddings = model.encode([[instruction,sentence,0]])
|
28 |
+
print(embeddings)
|
29 |
+
```
|