Update README.md
Browse files
README.md
CHANGED
@@ -9,7 +9,7 @@ This repository provides the source code and checkpoints of the paper "Lawformer
|
|
9 |
We have uploaded our model to the huggingface model hub. Make sure you have installed transformers.
|
10 |
```python
|
11 |
>>> from transformers import AutoModel, AutoTokenizer
|
12 |
-
>>> tokenizer = AutoTokenizer.from_pretrained("
|
13 |
>>> model = AutoModel.from_pretrained("thunlp/Lawformer")
|
14 |
>>> inputs = tokenizer("任某提起诉讼,请求判令解除婚姻关系并对夫妻共同财产进行分割。", return_tensors="pt")
|
15 |
>>> outputs = model(**inputs)
|
|
|
9 |
We have uploaded our model to the huggingface model hub. Make sure you have installed transformers.
|
10 |
```python
|
11 |
>>> from transformers import AutoModel, AutoTokenizer
|
12 |
+
>>> tokenizer = AutoTokenizer.from_pretrained("thunlp/Lawformer")
|
13 |
>>> model = AutoModel.from_pretrained("thunlp/Lawformer")
|
14 |
>>> inputs = tokenizer("任某提起诉讼,请求判令解除婚姻关系并对夫妻共同财产进行分割。", return_tensors="pt")
|
15 |
>>> outputs = model(**inputs)
|