AlvisNLP

corpus processing engine

FasttextClassifierLabel

Synopsis

FasttextClassifierLabel classifies documents with a FastText classifier trained with FasttextClassifierTrain .

This module is experimental.

Description

FasttextClassifierLabel evaluates documents as a list of elements and classifies each item with the classifier specified by modelFile . Documents are discriminated with attributes which must be the same as used for training. The predicted category is stored in classFeature .

Snippet

<fasttextclassifierlabel class="FasttextClassifierLabel">
    <attributes></attributes>
    <classFeature></classFeature>
    <documents></documents>
    <fasttextExecutable></fasttextExecutable>
    <modelFile></modelFile>
</fasttextclassifierlabel>

Mandatory parameters

attributes

Mandatory

Attributes of each document. The set of attributes must be identical in training with FasttextClassifierTrain and in labeling with FasttextClassifierLabel .

classFeature

Mandatory
Type: String

Feature where to store the predicted category.

documents

Mandatory
Type: Expression

Documents to classify. This expression is evaluated as a list of elements from the corpus.

fasttextExecutable

Mandatory

Path to the FastText executable (see the GitHub page for installation instructions).

modelFile

Mandatory
Type: InputFile

Model trained with FasttextClassifierTrain .

Optional parameters

probabilityFeature

Optional
Type: String

Feature where to store the probability of the predicted category.

Deprecated parameters