- if (mm[nonpos][0] > features[index].score)
- {
- mm[nonpos][0] = features[index].score;
- }
- if (mm[nonpos][1] < features[index].score)
- {
- mm[nonpos][1] = features[index].score;
- }
+ mm[nonpos][0] = Math.min(mm[nonpos][0], score);
+ mm[nonpos][1] = Math.max(mm[nonpos][1], score);
+ }
+ }
+
+ /*
+ * add to 'ordinal feature types' if it has featureNumber > 0
+ */
+ if (!ordinalFeatures.contains(type))
+ {
+ if (feature.getFeatureNumber() > 0)
+ {
+ ordinalFeatures.add(type);