Update README.md
Browse files
README.md
CHANGED
@@ -16,7 +16,7 @@ from transformers import XLMRobertaTokenizer, XLMRobertaTokenizerFast, AutoModel
|
|
16 |
tokenizer = XLMRobertaTokenizerFast.from_pretrained("vince62s/wmt22-cometkiwi-da-roberta-large", trust_remote_code=True)
|
17 |
model = AutoModel.from_pretrained("vince62s/wmt22-cometkiwi-da-roberta-large", trust_remote_code=True)
|
18 |
|
19 |
-
text = "Hello world
|
20 |
encoded_text = tokenizer(text, return_tensors='pt')
|
21 |
print(encoded_text)
|
22 |
output = model(**encoded_text)
|
|
|
16 |
tokenizer = XLMRobertaTokenizerFast.from_pretrained("vince62s/wmt22-cometkiwi-da-roberta-large", trust_remote_code=True)
|
17 |
model = AutoModel.from_pretrained("vince62s/wmt22-cometkiwi-da-roberta-large", trust_remote_code=True)
|
18 |
|
19 |
+
text = "Hello world!</s></s>Bonjour le monde"
|
20 |
encoded_text = tokenizer(text, return_tensors='pt')
|
21 |
print(encoded_text)
|
22 |
output = model(**encoded_text)
|