Commit
·
6653569
1
Parent(s):
38524c6
Update README.md
Browse files
README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
## 二、使用方法
|
| 4 |
```python
|
| 5 |
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
| 6 |
-
model_path = '
|
| 7 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_path, trust_remote_code=True, cache_dir=model_path)
|
| 8 |
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True, cache_dir=model_path)
|
| 9 |
input_text = ["Welcome to download and use!"]
|
|
@@ -17,4 +17,4 @@ result = [pre.strip() for pre in result]
|
|
| 17 |
该模型支持32种语言,更多详细参考[mRASP](https://github.com/linzehui/mRASP),此模型库的tokenizer仅针对中英双语进行优化,如果需要使用其他语言请
|
| 18 |
自行参考tokenization_bat.py进行修改。
|
| 19 |
## 四、其他模型
|
| 20 |
-
[
|
|
|
|
| 3 |
## 二、使用方法
|
| 4 |
```python
|
| 5 |
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
| 6 |
+
model_path = 'ENLP/mrasp'
|
| 7 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_path, trust_remote_code=True, cache_dir=model_path)
|
| 8 |
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True, cache_dir=model_path)
|
| 9 |
input_text = ["Welcome to download and use!"]
|
|
|
|
| 17 |
该模型支持32种语言,更多详细参考[mRASP](https://github.com/linzehui/mRASP),此模型库的tokenizer仅针对中英双语进行优化,如果需要使用其他语言请
|
| 18 |
自行参考tokenization_bat.py进行修改。
|
| 19 |
## 四、其他模型
|
| 20 |
+
[ENLP/mrasp2](https://huggingface.co/ENLP/mrasp2)
|