Function textcat::category::learn_from_directory[][src]

pub fn learn_from_directory(path: &str) -> IoResult<Categories<String>>
Expand description

Learn categories from a given directory. In the directory all the files should have a ‘sample’ extensions.