Module textcat::category[][src]

Expand description

Category module

This module groups sets of ngrams and their category into categories. This is useful to try unknown texts and see to which pre-trained category it belongs.

Structs

This structure is the serialized/unserialized sorted first N n-grams from a text.

Functions

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

Loads categories stored from a file.

Type Definitions

IoResult type