Update README.md
Browse files
README.md
CHANGED
@@ -2,7 +2,7 @@ This model classifies a pair of passages as continuing or not.
|
|
2 |
In other words, the model classifies if the linebreak between the pair of input is correct or not.
|
3 |
|
4 |
# Usage with SentenceTransformers
|
5 |
-
The usage becomes easier when you have SentenceTransformers installed. Then, you can use the pre-trained models like this:
|
6 |
|
7 |
```python
|
8 |
from sentence_transformers import CrossEncoder
|
@@ -10,7 +10,6 @@ model = CrossEncoder('model_name')
|
|
10 |
scores = model.predict([(Paragraph1a, Paragraph1b), (Paragraph2a, Paragraph2b) , (Paragraph3a, Paragraph3b)])
|
11 |
```
|
12 |
# Usage with Huggingface Transformers
|
13 |
-
The usage becomes easier when you have SentenceTransformers installed. Then, you can use the pre-trained models like this:
|
14 |
|
15 |
```python
|
16 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
|
|
2 |
In other words, the model classifies if the linebreak between the pair of input is correct or not.
|
3 |
|
4 |
# Usage with SentenceTransformers
|
5 |
+
The usage becomes easier when you have SentenceTransformers installed (trained with SetenceTransformers). Then, you can use the pre-trained models like this:
|
6 |
|
7 |
```python
|
8 |
from sentence_transformers import CrossEncoder
|
|
|
10 |
scores = model.predict([(Paragraph1a, Paragraph1b), (Paragraph2a, Paragraph2b) , (Paragraph3a, Paragraph3b)])
|
11 |
```
|
12 |
# Usage with Huggingface Transformers
|
|
|
13 |
|
14 |
```python
|
15 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|