Xuefeng Bai commited on
Commit
c4b3b9a
1 Parent(s): af291a8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -36,8 +36,8 @@ be fine-tuned on a downstream task.
36
  Here is how to initialize this model in PyTorch:
37
 
38
  ```python
39
- from transformers import BartModel
40
- model = BartModel.from_pretrained("xfbai/AMRBART-base")
41
  ```
42
  Please refer to [this repository](https://github.com/muyeby/AMRBART) for tokenizer initialization and data preprocessing.
43
 
 
36
  Here is how to initialize this model in PyTorch:
37
 
38
  ```python
39
+ from transformers import BartForConditionalGeneration
40
+ model = BartForConditionalGeneration.from_pretrained("xfbai/AMRBART-base")
41
  ```
42
  Please refer to [this repository](https://github.com/muyeby/AMRBART) for tokenizer initialization and data preprocessing.
43