word_vec-rs

Memory efficient library to work with word vectors

Example

```rust

let space = Word2VecParser::new() // Parse binary file .binary() // Index terms to find vectors faster. .indexterms(true) .parsefile("./GoogleNews-vectors-negative300.bin") .unwrap();

let hello = space.findterm("hello").unwrap(); let hi = space.findterm("hi").unwrap(); println!("{}", hello.cosine(&hi));

```