multi-train commited on
Commit
e9d20e0
1 Parent(s): f3c4dc8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -9,7 +9,7 @@ tags:
9
  - transformers
10
  ---
11
 
12
- # hku-nlp/instructor-large
13
  This is a general embedding model: It maps **any** piece of text (e.g., a title, a sentence, a document, etc.) to a fixed-length vector in test time **without further training**. With instructions, the embeddings are **domain-specific** (e.g., specialized for science, finance, etc.) and **task-aware** (e.g., customized for classification, information retrieval, etc.)
14
 
15
  The model is easy to use with `sentence-transformer` library.
@@ -27,7 +27,7 @@ Then you can use the model like this to calculate domain-specific and task-aware
27
  from sentence_transformers import SentenceTransformer
28
  sentence = "3D ActionSLAM: wearable person tracking in multi-floor environments"
29
  instruction = "Represent the Science title; Input:"
30
- model = SentenceTransformer('hku-nlp/instructor-large')
31
  embeddings = model.encode([[instruction,sentence,0]])
32
  print(embeddings)
33
  ```
 
9
  - transformers
10
  ---
11
 
12
+ # hkunlp/instructor-large
13
  This is a general embedding model: It maps **any** piece of text (e.g., a title, a sentence, a document, etc.) to a fixed-length vector in test time **without further training**. With instructions, the embeddings are **domain-specific** (e.g., specialized for science, finance, etc.) and **task-aware** (e.g., customized for classification, information retrieval, etc.)
14
 
15
  The model is easy to use with `sentence-transformer` library.
 
27
  from sentence_transformers import SentenceTransformer
28
  sentence = "3D ActionSLAM: wearable person tracking in multi-floor environments"
29
  instruction = "Represent the Science title; Input:"
30
+ model = SentenceTransformer('hkunlp/instructor-large')
31
  embeddings = model.encode([[instruction,sentence,0]])
32
  print(embeddings)
33
  ```