Text Classifier Model Pruner

Go to Product

The “Text Classifier Model Pruner” allows to reduce the size of a text classification model by applying different pruning methods. On the one hand, low frequency terms which were encountered during training can be removed. Our experience shows, that setting this value e.g. to “2” roughly reduces the number of terms in the model to half the amount without significantly harming classification quality (your mileage may vary).

On the other hand, an information-gain-based pruning strategy is available, which scores the terms and their associated category probabilities. A good explanation of the information gain method can be found in “A Comparative Study on Feature Selection in Text Categorization”, Yiming Yang and Jan O. Pedersen, 1997.

Options

Minimum term count
The minimum count (i.e. the number of training documents in which it has to appear) to keep a term, set to one to keep all terms.
Minimum information gain
The minimum information gain to keep a term. Set to zero to keep all terms.

Input Ports

Icon
The model data of the trained classifier.

Output Ports

Icon
The pruned model, where terms not satisfying the given properties have been removed.

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.