#[non_exhaustive]pub struct NlpCalibrationOverrides {
pub rel_offsets: HashMap<String, f32>,
pub unseen_offset: Option<f32>,
pub span_offset: Option<f32>,
pub coref_link_bias: Option<f32>,
pub ent_o_bias: Option<f32>,
pub entity_coref: Option<String>,
}Expand description
Per-request overrides of NlpCalibration. Unset fields keep the
model’s shipped value.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rel_offsets: HashMap<String, f32>Replaces individual entries of NlpCalibration::rel_offsets,
leaving the rest as shipped.
unseen_offset: Option<f32>Overrides NlpCalibration::unseen_offset.
span_offset: Option<f32>Overrides NlpCalibration::span_offset.
coref_link_bias: Option<f32>Overrides NlpCalibration::coref_link_bias.
ent_o_bias: Option<f32>Overrides NlpCalibration::ent_o_bias.
entity_coref: Option<String>Overrides NlpCalibration::entity_coref.
Trait Implementations§
Source§impl Clone for NlpCalibrationOverrides
impl Clone for NlpCalibrationOverrides
Source§fn clone(&self) -> NlpCalibrationOverrides
fn clone(&self) -> NlpCalibrationOverrides
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NlpCalibrationOverrides
impl Debug for NlpCalibrationOverrides
Source§impl Default for NlpCalibrationOverrides
impl Default for NlpCalibrationOverrides
Source§fn default() -> NlpCalibrationOverrides
fn default() -> NlpCalibrationOverrides
Returns the “default value” for a type. Read more
Source§impl PartialEq for NlpCalibrationOverrides
impl PartialEq for NlpCalibrationOverrides
impl StructuralPartialEq for NlpCalibrationOverrides
Auto Trait Implementations§
impl Freeze for NlpCalibrationOverrides
impl RefUnwindSafe for NlpCalibrationOverrides
impl Send for NlpCalibrationOverrides
impl Sync for NlpCalibrationOverrides
impl Unpin for NlpCalibrationOverrides
impl UnsafeUnpin for NlpCalibrationOverrides
impl UnwindSafe for NlpCalibrationOverrides
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more