Update README.md
Browse files
README.md
CHANGED
@@ -15,8 +15,8 @@ model is [simcse](https://arxiv.org/abs/2104.08821).
|
|
15 |
### Usage
|
16 |
```python
|
17 |
>>> from transformers import AutoTokenizer, AutoModel
|
18 |
-
>>> model = AutoModel.from_pretrained("tuhailong/
|
19 |
-
>>> tokenizer = AutoTokenizer.from_pretrained("tuhailong/
|
20 |
>>> sentences_str_list = ["今天天气不错的","天气不错的"]
|
21 |
>>> inputs = tokenizer(sentences_str_list,return_tensors="pt", padding='max_length', truncation=True, max_length=32)
|
22 |
>>> outputs = model(**inputs)
|
|
|
15 |
### Usage
|
16 |
```python
|
17 |
>>> from transformers import AutoTokenizer, AutoModel
|
18 |
+
>>> model = AutoModel.from_pretrained("tuhailong/SimCSE-bert-base")
|
19 |
+
>>> tokenizer = AutoTokenizer.from_pretrained("tuhailong/SimCSE-bert-base")
|
20 |
>>> sentences_str_list = ["今天天气不错的","天气不错的"]
|
21 |
>>> inputs = tokenizer(sentences_str_list,return_tensors="pt", padding='max_length', truncation=True, max_length=32)
|
22 |
>>> outputs = model(**inputs)
|