Open kordjamshidi opened 8 years ago
I think you're looking for this? https://github.com/IllinoisCogComp/saul/blob/master/saul-core/src/main/scala/edu/illinois/cs/cogcomp/saul/datamodel/DataModel.scala#L216
Add ordered = true
to your signature to use ordered. Here is a sample:
https://github.com/IllinoisCogComp/saul/blob/master/saul-core/src/test/scala/edu/illinois/cs/cogcomp/saul/datamodel/propertyTest.scala#L81-L83
Yes, that should be it, right. But now I test it I am not sure how this flag influences the final feature values because even by adding the order= true i see the identifier of the feature is empty and package name + property name is used for all? Maybe I am wrong but how did you tested this ordered real features?
I have never carefully looked into these properties; I just moved the old properties into this unified structure...
Ok, I myself worked on it before, I should have my lbjava generated examples for this, try to figure it out, Thanks.
When using the properties of type List[Double] if we want to respect the order of the features what we should do, this is real[] in lbjava vs. real% , I guess our implementation only supports real%? I see that in
RealPrimitiveStringFeature(String p, String c, String i, double v)
we pass emptyi
, which is the distinguishing identifier between real features.