justinphan3110
commited on
Commit
•
ce74685
1
Parent(s):
23bcbd7
Update README.md
Browse files
README.md
CHANGED
@@ -29,7 +29,7 @@ tokenizer = AutoTokenizer.from_pretrained("razent/SciFive-base-PMC")
|
|
29 |
model = AutoModelForSeq2SeqLM.from_pretrained("razent/SciFive-base-PMC")
|
30 |
|
31 |
sentence = "Identification of APC2 , a homologue of the adenomatous polyposis coli tumour suppressor ."
|
32 |
-
text =
|
33 |
|
34 |
encoding = tokenizer.encode_plus(text, pad_to_max_length=True, return_tensors="pt")
|
35 |
input_ids, attention_masks = encoding["input_ids"].to("cuda"), encoding["attention_mask"].to("cuda")
|
|
|
29 |
model = AutoModelForSeq2SeqLM.from_pretrained("razent/SciFive-base-PMC")
|
30 |
|
31 |
sentence = "Identification of APC2 , a homologue of the adenomatous polyposis coli tumour suppressor ."
|
32 |
+
text = sentence + " </s>"
|
33 |
|
34 |
encoding = tokenizer.encode_plus(text, pad_to_max_length=True, return_tensors="pt")
|
35 |
input_ids, attention_masks = encoding["input_ids"].to("cuda"), encoding["attention_mask"].to("cuda")
|