word_vec-rs
Memory efficient library to work with word vectors
Example
let space = new
// Parse binary file
.binary
// Index terms to find vectors faster.
.index_terms
.parse_file
.unwrap;
let hello = space.find_term.unwrap;
let hi = space.find_term.unwrap;
println!;
Convert file format
// Load a space
let space = new
.binary
.index_terms
.parse_file
.unwrap;
// export space to .vec file
let out = new;
new.export_space.unwrap;