Function fast_text::predict_prob[][src]

pub fn predict_prob(model: &str, inp: &str, k: u32) -> Vec<Vec<(String, f64)>>

Classify each line in an input file with probabilities of labels.

Documentation from fastText:

usage: fasttext predict[-prob] <test-data> []

model filename <test-data> test data filename (if -, read from stdin) (optional; 1 by default) predict top k labels