tomaarsen HF Staff commited on
Commit
e443658
·
verified ·
1 Parent(s): 380157f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -3
README.md CHANGED
@@ -1,7 +1,7 @@
1
  ---
2
  license: apache-2.0
3
  ---
4
- # Cross-Encoder for Quora Duplicate Questions Detection
5
  This model was trained using [SentenceTransformers](https://sbert.net) [Cross-Encoder](https://www.sbert.net/examples/applications/cross-encoder/README.html) class.
6
 
7
  ## Training Data
@@ -11,9 +11,10 @@ This model was trained on the [STS benchmark dataset](http://ixa2.si.ehu.eus/sts
11
  ## Usage and Performance
12
 
13
  Pre-trained models can be used like this:
14
- ```
15
  from sentence_transformers import CrossEncoder
16
- model = CrossEncoder('model_name')
 
17
  scores = model.predict([('Sentence 1', 'Sentence 2'), ('Sentence 3', 'Sentence 4')])
18
  ```
19
 
 
1
  ---
2
  license: apache-2.0
3
  ---
4
+ # Cross-Encoder for Semantic Textual Similarity
5
  This model was trained using [SentenceTransformers](https://sbert.net) [Cross-Encoder](https://www.sbert.net/examples/applications/cross-encoder/README.html) class.
6
 
7
  ## Training Data
 
11
  ## Usage and Performance
12
 
13
  Pre-trained models can be used like this:
14
+ ```python
15
  from sentence_transformers import CrossEncoder
16
+
17
+ model = CrossEncoder('cross-encoder/stsb-roberta-base')
18
  scores = model.predict([('Sentence 1', 'Sentence 2'), ('Sentence 3', 'Sentence 4')])
19
  ```
20