Read more about evaluation protocol datasets in Section 4.2 of our
paper
.
Usage
Embeddings can be used out of the box or fine-tuned on specific datasets.
Get embeddings:
import torch
import transformers
model = transformers.AutoModel.from_pretrained(
'numind/NuNER-BERT-v1.0',
output_hidden_states=True
)
tokenizer = transformers.AutoTokenizer.from_pretrained(
'numind/NuNER-BERT-v1.0'
)
text = [
"NuMind is an AI company based in Paris and USA.",
"See other models from us on https://huggingface.co/numind"
]
encoded_input = tokenizer(
text,
return_tensors='pt',
padding=True,
truncation=True
)
output = model(**encoded_input)
# for better quality
emb = torch.cat(
(output.hidden_states[-1], output.hidden_states[-7]),
dim=2
)
# for better speed# emb = output.hidden_states[-1]
Citation
@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}
}
Runs of numind NuNER-BERT-v1.0 on huggingface.co
1.4K
Total runs
0
24-hour runs
5
3-day runs
8
7-day runs
8
30-day runs
More Information About NuNER-BERT-v1.0 huggingface.co Model
NuNER-BERT-v1.0 huggingface.co is an AI model on huggingface.co that provides NuNER-BERT-v1.0's model effect (), which can be used instantly with this numind NuNER-BERT-v1.0 model. huggingface.co supports a free trial of the NuNER-BERT-v1.0 model, and also provides paid use of the NuNER-BERT-v1.0. Support call NuNER-BERT-v1.0 model through api, including Node.js, Python, http.
NuNER-BERT-v1.0 huggingface.co is an online trial and call api platform, which integrates NuNER-BERT-v1.0's modeling effects, including api services, and provides a free online trial of NuNER-BERT-v1.0, you can try NuNER-BERT-v1.0 online for free by clicking the link below.
numind NuNER-BERT-v1.0 online free url in huggingface.co:
NuNER-BERT-v1.0 is an open source model from GitHub that offers a free installation service, and any user can find NuNER-BERT-v1.0 on GitHub to install. At the same time, huggingface.co provides the effect of NuNER-BERT-v1.0 install, users can directly use NuNER-BERT-v1.0 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.