Transformers
Safetensors
mbart
text2text-generation
v1.0.0
entity-disambiguation
named-entity-linking
entity-linking
Instructions to use emanuelaboros/globalise-entity-linker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use emanuelaboros/globalise-entity-linker with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("emanuelaboros/globalise-entity-linker") model = AutoModelForSeq2SeqLM.from_pretrained("emanuelaboros/globalise-entity-linker", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 2,207 Bytes
6f7496c 5cd7a5e 6f7496c de90851 6f7496c be0c2cf 6f7496c 585579b 6f7496c | 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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | ---
library_name: transformers
language:
- multilingual
- af
- am
- ar
- as
- az
- be
- bg
- bm
- bn
- br
- bs
- ca
- cs
- cy
- da
- de
- el
- en
- eo
- es
- et
- eu
- fa
- ff
- fi
- fr
- fy
- ga
- gd
- gl
- gn
- gu
- ha
- he
- hi
- hr
- ht
- hu
- hy
- id
- ig
- is
- it
- ja
- jv
- ka
- kg
- kk
- km
- kn
- ko
- ku
- ky
- la
- lg
- ln
- lo
- lt
- lv
- mg
- mk
- ml
- mn
- mr
- ms
- my
- ne
- nl
- no
- om
- or
- pa
- pl
- ps
- pt
- qu
- ro
- ru
- sa
- sd
- si
- sk
- sl
- so
- sq
- sr
- ss
- su
- sv
- sw
- ta
- te
- th
- ti
- tl
- tn
- tr
- uk
- ur
- uz
- vi
- wo
- xh
- yo
- zh
license: agpl-3.0
tags:
- v1.0.0
- entity-disambiguation
- named-entity-linking
- entity-linking
- text2text-generation
---
# Model Card for `emanuelaboros/historic-nel`
The model is based on **mGENRE** (multilingual Generative ENtity
REtrieval) proposed by [De Cao et al](https://arxiv.org/abs/2103.12528), a sequence-to-sequence architecture for entity
disambiguation based on [mBART](https://arxiv.org/abs/2001.08210). It uses **constrained generation** to output entity
names mapped to Wikidata/QIDs.
Entity linking model for historical VOC/GLOBALISE archival data, linking named entities from early modern Dutch colonial sources to curated GLOBALISE/Dataverse authority records.
This model was fine-tuned on the [HIPE-2022 dataset](https://github.com/hipe-eval/HIPE-2022-data).
## How to Use
```python
from transformers import AutoTokenizer, pipeline
NEL_MODEL_NAME = "emanuelaboros/globalise-entity-linker"
nel_tokenizer = AutoTokenizer.from_pretrained(NEL_MODEL_NAME)
nel_pipeline = pipeline("generic-nel", model=NEL_MODEL_NAME,
tokenizer=nel_tokenizer,
trust_remote_code=True,
device='cpu')
sentence = "Le 0ctobre 1894, [START] Dreyfvs [END] est arrêté à Paris, accusé d'espionnage pour l'Allemagne — un événement qui déch1ra la société fr4nçaise pendant des années."
print(nel_pipeline(sentence))
```
|