Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language: zh
|
3 |
+
tags:
|
4 |
+
- chinese-roberta-wwm-ext
|
5 |
+
datasets:
|
6 |
+
- dialogue
|
7 |
+
---
|
8 |
+
# Data
|
9 |
+
unsupervise train data is E-commerce dialogue.
|
10 |
+
## Model
|
11 |
+
model is chinese-roberta-wwm-ext
|
12 |
+
### Usage
|
13 |
+
```python
|
14 |
+
>>> from transformers import AutoTokenizer, AutoModel
|
15 |
+
>>> model = AutoModel.from_pretrained("tuhailong/chinese-roberta-wwm-ext")
|
16 |
+
>>> tokenizer = AutoTokenizer.from_pretrained("tuhailong/chinese-roberta-wwm-ext")
|
17 |
+
>>> sentences_str_list = ["今天天气不错的","天气不错的"]
|
18 |
+
>>> inputs = tokenizer(sentences_str_list,return_tensors="pt", padding='max_length', truncation=True, max_length=32)
|
19 |
+
>>> outputs = model(**inputs)
|
20 |
+
```
|