#[non_exhaustive]pub struct BleuSpec {
pub use_effective_order: bool,
/* private fields */
}Available on crate feature
evaluation-service only.Expand description
Spec for bleu score metric - calculates the precision of n-grams in the prediction as compared to reference - returns a score ranging between 0 to 1.
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_effective_order: boolOptional. Whether to use_effective_order to compute bleu score.
Implementations§
Trait Implementations§
impl StructuralPartialEq for BleuSpec
Auto Trait Implementations§
impl Freeze for BleuSpec
impl RefUnwindSafe for BleuSpec
impl Send for BleuSpec
impl Sync for BleuSpec
impl Unpin for BleuSpec
impl UnwindSafe for BleuSpec
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