#[non_exhaustive]pub struct RougeSpec {
pub rouge_type: String,
pub use_stemmer: bool,
pub split_summaries: bool,
/* private fields */
}Available on crate feature
evaluation-service only.Expand description
Spec for rouge score metric - calculates the recall of n-grams in prediction as compared to reference - returns a score ranging between 0 and 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.rouge_type: StringOptional. Supported rouge types are rougen[1-9], rougeL, and rougeLsum.
use_stemmer: boolOptional. Whether to use stemmer to compute rouge score.
split_summaries: boolOptional. Whether to split summaries while using rougeLsum.
Implementations§
Trait Implementations§
impl StructuralPartialEq for RougeSpec
Auto Trait Implementations§
impl Freeze for RougeSpec
impl RefUnwindSafe for RougeSpec
impl Send for RougeSpec
impl Sync for RougeSpec
impl Unpin for RougeSpec
impl UnwindSafe for RougeSpec
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