File size: 1,807 Bytes
0bef028
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2431ab3
 
0bef028
 
 
 
 
2431ab3
d4d61e3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
language:
- multilingual
- pl
- ru
- uk
- bg
- cs
- sl
datasets:
- SlavicNER
license: apache-2.0
library_name: transformers
pipeline_tag: text2text-generation
tags:
- entity linking
widget:
  - text: "pl:Polsce"
  - text: "cs:Velké Británii"
  - text: "bg:българите"
  - text: "ru:Великобританию"
  - text: "sl:evropske komisije"
  - text: "uk:Європейського агентства лікарських засобів"
---

# Model description

This is a baseline model for named entity **lemmatization** trained on the single-out topic split of the 
[SlavicNER corpus](https://github.com/SlavicNLP/SlavicNER).


# Usage

You can use this model directly with a pipeline for text2text generation:

```python
from transformers import pipeline

model_name = "SlavicNLP/slavicner-linking-single-out-large"
pipe = pipeline("text2text-generation", model_name)

texts = ["pl:Polsce", "cs:Velké Británii", "bg:българите", "ru:Великобританию",
         "sl:evropske komisije", "uk:Європейського агентства лікарських засобів"]

outputs = pipe(texts)

ids = [o['generated_text'] for o in outputs]
print(ids)
# ['GPE-Poland', 'GPE-Great-Britain', 'GPE-Bulgaria', 'GPE-Great-Britain',
#  'ORG-European-Commission', 'ORG-EMA-European-Medicines-Agency']
```


# Evaluation

| **Language** | **Seq2seq** | **Support** |
|:------------:|:-----------:|-----------------:|
| PL           | 75.13       | 2 549            |
| CS           | 77.92       | 1 137            |
| RU           | 67.56       | 18 018           |
| BG           | 63.60       | 6 085            |
| SL           | 76.81       | 7 082            |
| UK           | 58.94       | 3 085            |
| All          | 68.75       | 37 956           |