Skip to main content

Module nlp

Module nlp 

Source
Expand description

Structured natural-language analysis types and traits.

The trait is designed around multi-head cascade models (e.g. dragonscale-ai/kniv-deberta-nlp-base-en-xsmall) that produce token-level POS / NER / DEP tags, sentence segmentation, optional SRL frames, and optional dialog-act classification in a single forward pass.

Structs§

DepLink
A dependency-parse arc attached to an NlpToken.
ExtractionSchema
The relations and entity types to extract from one request.
LabelSpec
One schema label: a name, and a description that tells the model what it means and which side of a relation is the head.
NerEntity
One merged named-entity span, a BIO-collapsed view of per-token NER tags.
NlpCalibration
The decoding thresholds a model ships in calibration.json.
NlpCalibrationOverrides
Per-request overrides of NlpCalibration. Unset fields keep the model’s shipped value.
NlpEntity
One typed entity of an NlpWindow, grouped across its mentions.
NlpFact
One extracted fact: a relation between two entities, with its attributes.
NlpLabelMaps
The label vocabularies a model decodes against, one list per head.
NlpRequest
One NLP analysis request: an input plus the heads to populate.
NlpResult
Structured output of an NLP analysis call.
NlpSentence
One sentence in an NlpResult.
NlpTasks
Selects which NLP heads a caller wants populated.
NlpToken
One token in an NlpResult.
NlpWindow
One analysis window: a run of whole sentences of up to the model’s word budget, analysed in a single pass.
SpeechAct
One sentence-level classification result.
SrlFrame
One semantic-role-labeling frame: a predicate and its argument spans.
SrlRole
One argument span of an SrlFrame.
Turn
One turn of a conversation passed as NlpRequest::turns.
WindowFrame
One semantic-role frame of an NlpWindow.
WindowSentence
One sentence of an NlpWindow.
WordAnalysis
Per-word linguistic analysis.
WordSpan
A labelled half-open [start, end) span of words.

Enums§

FactModality
How a NlpFact is held by its holder.
FactPolarity
Whether a NlpFact is asserted or denied.

Traits§

NlpModel
A multi-head structured-NLP model.