private static FeatureSet getFeatureSet(String task) throws AuToBIException {
    if (task.equals("pitch_accent_detection"))
      return new PitchAccentDetectionFeatureSet();
    if (task.equals("pitch_accent_classification"))
      return new PitchAccentClassificationFeatureSet();
    if (task.equals("intonational_phrase_boundary_detection"))
      return new IntonationalPhraseBoundaryDetectionFeatureSet();
    if (task.equals("intermediate_phrase_boundary_detection"))
      return new IntermediatePhraseBoundaryDetectionFeatureSet();
    if (task.equals("boundary_tone_classification"))
      return new PhraseAccentBoundaryToneClassificationFeatureSet();
    if (task.equals("phrase_accent_classification"))
      return new PhraseAccentClassificationFeatureSet();
    throw new AuToBIException("No defined feature set for task: " + task);
  }