Struct fasttext::FastText
[−]
[src]
pub struct FastText { /* fields omitted */ }
Methods
impl FastText
[src]
fn new() -> Self
[src]
fn load_model(&mut self, filename: &str)
[src]
fn save_model(&mut self)
[src]
fn save_output(&mut self)
[src]
fn save_vectors(&mut self)
[src]
fn get_dimension(&self) -> isize
[src]
fn get_word_id(&self, word: &str) -> isize
[src]
fn get_subword_id(&self, word: &str) -> isize
[src]
fn is_quant(&self) -> bool
[src]
fn analogies(&mut self, k: i32)
[src]
fn train_thread(&mut self, n: u32)
[src]
fn load_vectors(&mut self, filename: &str)
[src]
fn train(&mut self, args: &Args)
[src]
fn predict(&self, text: &str, k: i32, threshold: f32) -> Vec<Prediction>
[src]
fn quantize(&mut self, args: &Args)
[src]
Trait Implementations
impl Debug for FastText
[src]
impl Clone for FastText
[src]
fn clone(&self) -> FastText
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more