code: private static int getFeatureTypeIndex(String feature) {
      if (feature.endsWith("|C")) {
        return 0;
      } else if (feature.endsWith("|CpC")) {
        return 1;
      } else if (feature.endsWith("|Cp2C")) {
        return 2;
      } else if (feature.endsWith("|Cp3C")) {
        return 3;
      } else if (feature.endsWith("|Cp4C")) {
        return 4;
      } else if (feature.endsWith("|Cp5C")) {
        return 5;
      } else {
        throw new RuntimeException("Unknown feature type " + feature);
      }
    }
docs: Get index of featureType for feature based on the feature string
  (featureType index used to index labelIndices to get labels)
  
  @param feature
  feature string
  @return index of featureType