Export to GitHub

cleartk - issue #412

MalletCrfStringOutcomeClassifier drops the last feature when classifying


Posted on Dec 19, 2014 by Happy Monkey

What steps will reproduce the problem? Run MalletCrfStringOutcomeClassifier.classify method on a list of list of features and observe the output instance after it is processed by the transducer's pipe.

What is the expected output? All the list of features processed by the pipe are passed to the transducer.

What do you see instead? The last feature in each list of features is interpreted as a class/target because the pipe.targetProcessing field is set to true (default) as for training. The end results is that this last feature is dropped and never sent to the transducer.

What version of the product are you using? On what operating system? This is affecting the version 2.0 of cleartk-ml.

The main function in cc.mallet.fst.SimpleTagger

Comment #1

Posted on Dec 19, 2014 by Happy Monkey

I sent to fast...

The main function in cc.mallet.fst.SimpleTagger is a good place to see how the pipe is used when classifying.

Comment #2

Posted on Dec 22, 2014 by Grumpy Rabbit

(No comment was entered for this change.)

Status: Accepted

Labels:
Type-Defect Priority-Medium Milestone-2.1 Component-ml-mallet