Update README.md
Browse files
README.md
CHANGED
@@ -14,10 +14,8 @@ model created by [sentence-tansformers](https://www.sbert.net/index.html),mode
|
|
14 |
|
15 |
### Usage
|
16 |
```python
|
17 |
-
>>> from
|
18 |
-
>>> model =
|
19 |
-
>>>
|
20 |
-
>>>
|
21 |
-
>>> inputs = tokenizer(sentences_str_list,return_tensors="pt", padding='max_length', truncation=True, max_length=32)
|
22 |
-
>>> outputs = model(**inputs)
|
23 |
```
|
|
|
14 |
|
15 |
### Usage
|
16 |
```python
|
17 |
+
>>> from sentence_transformers.cross_encoder import CrossEncoder
|
18 |
+
>>> model = CrossEncoder('tuhailong/cross-encoder')
|
19 |
+
>>> scores = model.predict([["今天天气不错", "今天心情不错"]])
|
20 |
+
>>> print(scores)
|
|
|
|
|
21 |
```
|