czuk commited on
Commit
2431ab3
1 Parent(s): 0bef028

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -3
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:Великобританию", "sl:evropske komisije",
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', 'ORG-European-Commission', 'ORG-EMA-European-Medicines-Agency']
 
 
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']