Update README.md
Browse files
README.md
CHANGED
@@ -39,11 +39,12 @@ from transformers import pipeline
|
|
39 |
model_name = "SlavicNLP/slavicner-linking-single-out-large"
|
40 |
pipe = pipeline("text2text-generation", model_name)
|
41 |
|
42 |
-
texts = ["pl:Polsce", "cs:Velké Británii", "bg:българите", "ru:Великобританию",
|
43 |
-
"uk:Європейського агентства лікарських засобів"]
|
44 |
|
45 |
outputs = pipe(texts)
|
46 |
|
47 |
ids = [o['generated_text'] for o in outputs]
|
48 |
print(ids)
|
49 |
-
# ['GPE-Poland', 'GPE-Great-Britain', 'GPE-Bulgaria', 'GPE-Great-Britain',
|
|
|
|
39 |
model_name = "SlavicNLP/slavicner-linking-single-out-large"
|
40 |
pipe = pipeline("text2text-generation", model_name)
|
41 |
|
42 |
+
texts = ["pl:Polsce", "cs:Velké Británii", "bg:българите", "ru:Великобританию",
|
43 |
+
"sl:evropske komisije", "uk:Європейського агентства лікарських засобів"]
|
44 |
|
45 |
outputs = pipe(texts)
|
46 |
|
47 |
ids = [o['generated_text'] for o in outputs]
|
48 |
print(ids)
|
49 |
+
# ['GPE-Poland', 'GPE-Great-Britain', 'GPE-Bulgaria', 'GPE-Great-Britain',
|
50 |
+
# 'ORG-European-Commission', 'ORG-EMA-European-Medicines-Agency']
|