/** Analogous to binaryFeatureSet */ private Set<Feature> featureSet(int start, int end, Instance otherInstance) { Set<Feature> s = new HashSet<Feature>(); s.addAll(binaryFeatureSet(start, end, otherInstance)); s.addAll(numericFeatureSet(start, end, otherInstance)); return s; }