hku-nlp commited on
Commit
4838622
1 Parent(s): 685df17

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +29 -0
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-large
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-large')
27
+ embeddings = model.encode([[instruction,sentence,0]])
28
+ print(embeddings)
29
+ ```