Function fast_text::predict [−][src]
pub fn predict(model: &str, inp: &str, k: u32) -> Vec<Vec<String>>
Classify each line in an input file.
output: a vector of the same length as the number of lines in the input file where each length is value is a k-length vector of labels for the text from the line.
Documentation from fastText:
usage: fasttext predict[-prob]