pub struct NeuralEngine { /* private fields */ }Implementations§
Source§impl NeuralEngine
impl NeuralEngine
pub fn load() -> Self
pub fn score_line( &self, line: &str, position: f64, task_keywords: &[String], ) -> f64
pub fn optimize_line(&self, line: &str) -> String
pub fn attention_weight(&self, position: f64) -> f64
pub fn has_neural_model(&self) -> bool
Auto Trait Implementations§
impl Freeze for NeuralEngine
impl RefUnwindSafe for NeuralEngine
impl Send for NeuralEngine
impl Sync for NeuralEngine
impl Unpin for NeuralEngine
impl UnsafeUnpin for NeuralEngine
impl UnwindSafe for NeuralEngine
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