pub struct OwnedCandidateTranscript { /* private fields */ }
Expand description
An owned variant of CandidateTranscript
.
Implementations§
Source§impl OwnedCandidateTranscript
impl OwnedCandidateTranscript
Sourcepub fn tokens(&self) -> &[OwnedTokenMetadata]
pub fn tokens(&self) -> &[OwnedTokenMetadata]
Return an array of tokens in this transcript.
Sourcepub const fn confidence(&self) -> f64
pub const fn confidence(&self) -> f64
Approximated confidence value for this transcript. This is roughly the sum of the acoustic model logit values for each timestep/character that contributed to the creation of this transcript.
Sourcepub fn num_tokens(&self) -> usize
pub fn num_tokens(&self) -> usize
Total number of tokens in this transcript.
Trait Implementations§
Source§impl Clone for OwnedCandidateTranscript
impl Clone for OwnedCandidateTranscript
Source§fn clone(&self) -> OwnedCandidateTranscript
fn clone(&self) -> OwnedCandidateTranscript
Returns a copy 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 OwnedCandidateTranscript
impl Debug for OwnedCandidateTranscript
Auto Trait Implementations§
impl Freeze for OwnedCandidateTranscript
impl RefUnwindSafe for OwnedCandidateTranscript
impl Send for OwnedCandidateTranscript
impl Sync for OwnedCandidateTranscript
impl Unpin for OwnedCandidateTranscript
impl UnwindSafe for OwnedCandidateTranscript
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