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.
NerEntity
One merged named-entity span, a BIO-collapsed view of per-token NER tags.
NlpLabelMaps
The label vocabularies a model decodes against, one list per head.
NlpRequest
One NLP analysis request: a text 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.
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.

Traits§

NlpModel
A multi-head structured-NLP model.