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