Update README.md
Browse files
README.md
CHANGED
@@ -25,6 +25,9 @@ tokenizer = AutoTokenizer.from_pretrained("xlm-roberta-large")
|
|
25 |
|
26 |
sentence = "These principles are under threat."
|
27 |
context = "Human rights and international humanitarian law are fundamental pillars of a secure global system. These principles are under threat. Some of the world's most powerful states choose to sell arms to human-rights abusing states."
|
|
|
|
|
|
|
28 |
|
29 |
inputs = tokenizer(sentence,
|
30 |
context,
|
|
|
25 |
|
26 |
sentence = "These principles are under threat."
|
27 |
context = "Human rights and international humanitarian law are fundamental pillars of a secure global system. These principles are under threat. Some of the world's most powerful states choose to sell arms to human-rights abusing states."
|
28 |
+
# For sentences without additional context, just use the sentence itself as the context.
|
29 |
+
# Example: context = "These principles are under threat."
|
30 |
+
|
31 |
|
32 |
inputs = tokenizer(sentence,
|
33 |
context,
|