pub struct BertScoreConfig {
pub baseline: Option<f64>,
}Expand description
Configuration for BERTScore.
Fields§
§baseline: Option<f64>Optional baseline value b ∈ (−1, 1) used for rescaling the raw
scores: score ← (score − b) / (1 − b). The paper rescales against an
empirical baseline (the average score of random sentence pairs for the
chosen model/layer) so that scores spread across a more interpretable
range. None disables rescaling (raw cosine scores in [−1, 1]).
Implementations§
Trait Implementations§
Source§impl Clone for BertScoreConfig
impl Clone for BertScoreConfig
Source§fn clone(&self) -> BertScoreConfig
fn clone(&self) -> BertScoreConfig
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 BertScoreConfig
impl Debug for BertScoreConfig
Source§impl Default for BertScoreConfig
impl Default for BertScoreConfig
Source§fn default() -> BertScoreConfig
fn default() -> BertScoreConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BertScoreConfig
impl RefUnwindSafe for BertScoreConfig
impl Send for BertScoreConfig
impl Sync for BertScoreConfig
impl Unpin for BertScoreConfig
impl UnsafeUnpin for BertScoreConfig
impl UnwindSafe for BertScoreConfig
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