pub struct TokenScore {
pub log_prob: f32,
pub ngram_length: u8,
pub oov: bool,
}Expand description
Sentence-level per-token score, including OOV metadata.
Fields§
§log_prob: f32§ngram_length: u8§oov: boolTrait Implementations§
Source§impl Clone for TokenScore
impl Clone for TokenScore
Source§fn clone(&self) -> TokenScore
fn clone(&self) -> TokenScore
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 Debug for TokenScore
impl Debug for TokenScore
Source§impl PartialEq for TokenScore
impl PartialEq for TokenScore
impl Copy for TokenScore
impl StructuralPartialEq for TokenScore
Auto Trait Implementations§
impl Freeze for TokenScore
impl RefUnwindSafe for TokenScore
impl Send for TokenScore
impl Sync for TokenScore
impl Unpin for TokenScore
impl UnsafeUnpin for TokenScore
impl UnwindSafe for TokenScore
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