Function textcat::storage::learn_from_directory[][src]

pub fn learn_from_directory(path: &str) -> IOResult<FileContent>

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