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
Attributes of each document. The set of attributes must be identical in training with FasttextClassifierTrain and in labeling with FasttextClassifierLabel .
classFeature
Feature where to store the predicted category.
documents
Documents to classify. This expression is evaluated as a list of elements from the corpus.
fasttextExecutable
Path to the FastText executable (see the GitHub page for installation instructions).
modelFile
Model trained with FasttextClassifierTrain .
Optional parameters
probabilityFeature
Feature where to store the probability of the predicted category.