Struct txtai::labels::Labels [−][src]
pub struct Labels { /* fields omitted */ }
Expand description
Labels definition
Implementations
Labels implementation
Applies a zero shot classifier to text using a list of labels. Returns a list of {id: value, score: value} sorted by highest score, where id is the index in labels.
Arguments
text
- input textlabels
- list of labels
Applies a zero shot classifier to list of text using a list of labels. Returns a list of {id: value, score: value} sorted by highest score, where id is the index in labels per text element.
Arguments
texts
- list of textslabels
- list of labels
Auto Trait Implementations
impl RefUnwindSafe for Labels
impl UnwindSafe for Labels
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more