sbert 0.4.1

Rust implementation of Sentence Bert (SBert)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub fn main() {
    let args: Vec<_> = std::env::args().collect();
    if !args.len() == 3 {
        eprintln!("usage: {} source.npz destination.ot", args[0]);
        std::process::exit(1);
    }

    let source_file = &args[1];
    let destination_file = &args[2];
    let tensors = tch::Tensor::read_npz(source_file).unwrap();
    tch::Tensor::save_multi(&tensors, destination_file).unwrap();
}