laito / cleartk

Automatically exported from code.google.com/p/cleartk
0 stars 0 forks source link

MalletCrfStringOutcomeClassifier drops the last feature when classifying #412

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 

Original issue reported on code.google.com by dumais....@gmail.com on 19 Dec 2014 at 3:30

GoogleCodeExporter commented 9 years ago
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.

Original comment by dumais....@gmail.com on 19 Dec 2014 at 3:33

GoogleCodeExporter commented 9 years ago

Original comment by steven.b...@gmail.com on 22 Dec 2014 at 3:11