AlvisNLP

corpus processing engine

WekaPredict

Synopsis

Classifies elements with a Weka classifier.

Description

WekaPredict applies the classifier loaded from classifierFile on elements specified by examples .

Snippet

<wekapredict class="WekaPredict">
    <classifierFile></classifierFile>
    <examples></examples>
    <predictedClassFeature></predictedClassFeature>
    <relationDefinition></relationDefinition>
</wekapredict>

Mandatory parameters

classifierFile

Mandatory
Type: File

Serialized classifier file. This file must be generated by TrainingElementClassifier with the same relationDefinition .

examples

Mandatory
Type: Expression

Training set examples. This expression is evaluated as a list of elements with the corpus as the context element.

predictedClassFeature

Mandatory
Type: String

Feature where to write the class prediction.

relationDefinition

Mandatory

Specification of example attributes and class.

Optional parameters

evaluationFile

Optional

File where to write evaluation results.

Deprecated parameters

predictedClassFeatureKey

Deprecated
Type: String

Deprecated alias for predictedClassFeature .