#[non_exhaustive]pub struct QuestionAnsweringCorrectnessSpec {
pub use_reference: bool,
pub version: i32,
/* private fields */
}Available on crate feature
evaluation-service only.Expand description
Spec for question answering correctness metric.
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.use_reference: boolOptional. Whether to use instance.reference to compute question answering correctness.
version: i32Optional. Which version to use for evaluation.
Implementations§
Source§impl QuestionAnsweringCorrectnessSpec
impl QuestionAnsweringCorrectnessSpec
pub fn new() -> Self
Sourcepub fn set_use_reference<T: Into<bool>>(self, v: T) -> Self
pub fn set_use_reference<T: Into<bool>>(self, v: T) -> Self
Sets the value of use_reference.
§Example
ⓘ
let x = QuestionAnsweringCorrectnessSpec::new().set_use_reference(true);Trait Implementations§
Source§impl Clone for QuestionAnsweringCorrectnessSpec
impl Clone for QuestionAnsweringCorrectnessSpec
Source§fn clone(&self) -> QuestionAnsweringCorrectnessSpec
fn clone(&self) -> QuestionAnsweringCorrectnessSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for QuestionAnsweringCorrectnessSpec
impl Default for QuestionAnsweringCorrectnessSpec
Source§fn default() -> QuestionAnsweringCorrectnessSpec
fn default() -> QuestionAnsweringCorrectnessSpec
Returns the “default value” for a type. Read more
Source§impl PartialEq for QuestionAnsweringCorrectnessSpec
impl PartialEq for QuestionAnsweringCorrectnessSpec
Source§fn eq(&self, other: &QuestionAnsweringCorrectnessSpec) -> bool
fn eq(&self, other: &QuestionAnsweringCorrectnessSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QuestionAnsweringCorrectnessSpec
Auto Trait Implementations§
impl Freeze for QuestionAnsweringCorrectnessSpec
impl RefUnwindSafe for QuestionAnsweringCorrectnessSpec
impl Send for QuestionAnsweringCorrectnessSpec
impl Sync for QuestionAnsweringCorrectnessSpec
impl Unpin for QuestionAnsweringCorrectnessSpec
impl UnwindSafe for QuestionAnsweringCorrectnessSpec
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