Enum ocrs::DecodeMethod
source · pub enum DecodeMethod {
Greedy,
BeamSearch {
width: u32,
},
}Expand description
Method used to decode sequence model outputs to a sequence of labels.
See CtcDecoder for more details.
Variants§
Trait Implementations§
source§impl Clone for DecodeMethod
impl Clone for DecodeMethod
source§fn clone(&self) -> DecodeMethod
fn clone(&self) -> DecodeMethod
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 Default for DecodeMethod
impl Default for DecodeMethod
source§fn default() -> DecodeMethod
fn default() -> DecodeMethod
Returns the “default value” for a type. Read more
impl Copy for DecodeMethod
Auto Trait Implementations§
impl RefUnwindSafe for DecodeMethod
impl Send for DecodeMethod
impl Sync for DecodeMethod
impl Unpin for DecodeMethod
impl UnwindSafe for DecodeMethod
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