Skip to content

Named Entity Recognition Node

AI/ML/ONNX/NLP

Named Entity Recognition

Extract named entities (persons, organizations, locations, dates, etc.) from text using ONNX models. Supports BERT, RoBERTa, and other transformer-based NER models with automatic tokenization. Download models from: BERT-base-NER (https://huggingface.co/dslim/bert-base-NER), Multilingual NER (https://huggingface.co/Davlan/bert-base-multilingual-cased-ner-hrl), spaCy NER (https://huggingface.co/spacy). Download tokenizer.json from the same model repository.

onnx_neronnx
Inputs8
Outputs4
Security exposure10/10
Packageonnx

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

No score metadata has been set for this node yet.

Input Pins

8

Input

Execution
exec_in

Initiate Execution

Model

Struct
model

ONNX NER Model Session

NodeOnnxSessionNodeOnnxSession1 fields
session_refstringrequired

Cache ID for Session

Schema enforced

Tokenizer

Struct
tokenizer

HuggingFace tokenizer.json file for BERT/RoBERTa tokenization. Download from the same model repository.

FlowPathFlowPath3 fields
pathstringrequired
store_refstringrequired
cache_store_refstring | null
Schema enforced

Text

String
text

Input text to analyze for named entities

Labels

String Array
labels

Entity label names in model output order (e.g. ['O', 'B-PER', 'I-PER', 'B-ORG', ...]). If empty, uses CoNLL-2003 default.

Tagging Scheme

Struct
scheme

Tagging scheme: BIO, BIOES, IOB, or BILOU

TaggingSchemeTaggingScheme4 fields
variant 1constvariant

BIO: Begin, Inside, Outside (most common)

const "BIO"
variant 2constvariant

BIOES: Begin, Inside, Outside, End, Single

const "BIOES"
variant 3constvariant

IOB: Inside, Outside, Begin (legacy format)

const "IOB"
variant 4constvariant

BILOU: Begin, Inside, Last, Outside, Unit

const "BILOU"
Default BIO
BIOBIOESIOBBILOU

Threshold

Float
threshold

Minimum confidence threshold for entity extraction (0.0-1.0)

Default 0.5
Range 0 to 1

Max Length

Integer
max_length

Maximum sequence length for tokenization (default: 512)

Default 512

Output Pins

4

Output

Execution
exec_out

Done

Result

Struct
result

Full NER result with entities and token predictions

NerResultNerResult3 fields
entitiesArray<NamedEntity>required

Recognized entities

itemsNamedEntityarray item

A recognized named entity

textstringrequired

The entity text

entity_typestringrequired

Entity type (PER, ORG, LOC, etc.)

start_charinteger:uintrequired

Character start position in original text

format uintmin 0
end_charinteger:uintrequired

Character end position in original text (exclusive)

format uintmin 0
start_tokeninteger:uintrequired

Start token index

format uintmin 0
+2 more fields
tokensArray<TokenPrediction>required

Token-level predictions

itemsTokenPredictionarray item

Token-level NER prediction

tokenstringrequired

Token text (may include ## for wordpiece)

labelstringrequired

Predicted label (raw from model)

confidencenumber:floatrequired

Confidence score

format float
startinteger:uintrequired

Character offset start

format uintmin 0
endinteger:uintrequired

Character offset end

format uintmin 0
textstringrequired

Original input text

Entities

Struct Array
entities

Extracted named entities as array

NamedEntityNamedEntity7 fields
textstringrequired

The entity text

entity_typestringrequired

Entity type (PER, ORG, LOC, etc.)

start_charinteger:uintrequired

Character start position in original text

format uintmin 0
end_charinteger:uintrequired

Character end position in original text (exclusive)

format uintmin 0
start_tokeninteger:uintrequired

Start token index

format uintmin 0
end_tokeninteger:uintrequired

End token index (exclusive)

format uintmin 0
confidencenumber:floatrequired

Average confidence score

format float

Count

Integer
entity_count

Number of entities found

Node Info

Internal name
onnx_ner
Category
AI/ML/ONNX/NLP
Version
1