nreimers commited on
Commit
b598e0f
1 Parent(s): 6977462

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -26,7 +26,7 @@ query = "How many people live in London?"
26
  docs = ["Around 9 Million people live in London", "London is known for its financial district"]
27
 
28
  #Load the model
29
- model = SentenceTransformer('sentence-transformers/msmarco-distilbert-dot-v4')
30
 
31
  #Encode query and documents
32
  query_emb = model.encode(query)
@@ -82,8 +82,8 @@ query = "How many people live in London?"
82
  docs = ["Around 9 Million people live in London", "London is known for its financial district"]
83
 
84
  # Load model from HuggingFace Hub
85
- tokenizer = AutoTokenizer.from_pretrained("sentence-transformers/msmarco-distilbert-dot-v4")
86
- model = AutoModel.from_pretrained("sentence-transformers/msmarco-distilbert-dot-v4")
87
 
88
  #Encode query and docs
89
  query_emb = encode(query)
@@ -121,7 +121,7 @@ In the following some technical details how this model must be used:
121
 
122
  <!--- Describe how your model was evaluated -->
123
 
124
- For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name=msmarco-distilbert-base-dot-v4)
125
 
126
 
127
  ## Training
 
26
  docs = ["Around 9 Million people live in London", "London is known for its financial district"]
27
 
28
  #Load the model
29
+ model = SentenceTransformer('sentence-transformers/msmarco-distilbert-dot-v5')
30
 
31
  #Encode query and documents
32
  query_emb = model.encode(query)
 
82
  docs = ["Around 9 Million people live in London", "London is known for its financial district"]
83
 
84
  # Load model from HuggingFace Hub
85
+ tokenizer = AutoTokenizer.from_pretrained("sentence-transformers/msmarco-distilbert-dot-v5")
86
+ model = AutoModel.from_pretrained("sentence-transformers/msmarco-distilbert-dot-v5")
87
 
88
  #Encode query and docs
89
  query_emb = encode(query)
 
121
 
122
  <!--- Describe how your model was evaluated -->
123
 
124
+ For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name=msmarco-distilbert-base-dot-v5)
125
 
126
 
127
  ## Training