public void generateAllDotDescForWagon(PrintWriter out,Set<String> featuresToIgnore){
  out.println("(");
  out.println("(occurid cluster)");
  for (int i=0, n=getNumberOfFeatures(); i < n; i++) {
    out.print("( ");
    String featureName=getFeatureName(i);
    out.print(featureName);
    if (featuresToIgnore != null && featuresToIgnore.contains(featureName)) {
      out.print(" ignore");
    }
    if (i < numByteFeatures + numShortFeatures) {
      for (int v=0, vmax=getNumberOfValues(i); v < vmax; v++) {
        out.print("  ");
        String val=getFeatureValueAsString(i,v);
        if (val.indexOf('"') != -1) {
          StringBuilder buf=new StringBuilder();
          for (int c=0; c < val.length(); c++) {
            char ch=val.charAt(c);
            if (ch == '"')             buf.append("\\\"");
 else             buf.append(ch);
          }
          val=buf.toString();
        }
        out.print("\"" + val + "\"");
      }
      out.println(" )");
    }
 else {
      out.println(" float )");
    }
  }
  out.println(")");
}

public void generateAllDotDescForWagon ( PrintWriter out , Set < String > featuresToIgnore ) { out . println ( "(" ) ; out . println ( "(occurid cluster)" ) ; for ( int i = 0 , n = getNumberOfFeatures ( ) ; i < n ; i ++ ) { out . print ( "( " ) ; String featureName = getFeatureName ( i ) ; out . print ( featureName ) ; if ( featuresToIgnore != null && featuresToIgnore . contains ( featureName ) ) { out . print ( " ignore" ) ; } if ( i < numByteFeatures + numShortFeatures ) { for ( int v = 0 , vmax = getNumberOfValues ( i ) ; v < vmax ; v ++ ) { out . print ( "  " ) ; String val = getFeatureValueAsString ( i , v ) ; if ( val . indexOf ( '"' ) != - 1 ) { StringBuilder buf = new StringBuilder ( ) ; for ( int c = 0 ; c < val . length ( ) ; c ++ ) { char ch = val . charAt ( c ) ; if ( ch == '"' ) buf . append ( "\\\"" ) ; else buf . append ( ch ) ; } val = buf . toString ( ) ; } out . print ( "\"" + val + "\"" ) ; } out . println ( " )" ) ; } else { out . println ( " float )" ) ; } } out . println ( ")" ) ; }
export this feature definition in the " all . desc " format which can be read by wagon .
