Views
No views yet
| Model | k=1 | k=4 | k=16 | k=64 |
|---|---|---|---|---|
| RoBERTa-base | 24.5 | 44.7 | 58.1 | 65.4 |
| RoBERTa-base + NER-BERT pre-training | 32.3 | 50.9 | 61.9 | 67.6 |
| NuNER v0.1 | 34.3 | 54.6 | 64.0 | 68.7 |
| NuNER v1.0 | 39.4 | 59.6 | 67.8 | 71.5 |
| NuNER v2.0 | 43.6 | 61.0 | 68.2 | 72.0 |
| Model | k=8~16 | k=64~128 |
|---|---|---|
| UniversalNER (7B) | 57.89 ± 4.34 | 71.02 ± 1.53 |
| NuNER v1.0 (100M) | 58.75 ± 0.93 | 70.30 ± 0.35 |
1import torch
2import transformers
3
4
5model = transformers.AutoModel.from_pretrained(
6 'numind/NuNER-v1.0'
7)
8tokenizer = transformers.AutoTokenizer.from_pretrained(
9 'numind/NuNER-v1.0'
10)
11
12text = [
13 "NuMind is an AI company based in Paris and USA.",
14 "See other models from us on https://huggingface.co/numind"
15]
16encoded_input = tokenizer(
17 text,
18 return_tensors='pt',
19 padding=True,
20 truncation=True
21)
22output = model(**encoded_input)
23
24emb = output.last_hidden_state@misc{bogdanov2024nuner,
title={NuNER: Entity Recognition Encoder Pre-training via LLM-Annotated Data},
author={Sergei Bogdanov and Alexandre Constantin and Timothée Bernard and Benoit Crabbé and Etienne Bernard},
year={2024},
eprint={2402.15343},
archivePrefix={arXiv},
primaryClass={cs.CL}
}