docs: public void addValuedTrainingInstance(int id, String label, List<StringDoublePair> features) {
      List<scala.Tuple2<String,Double>> arr = new ArrayList<scala.Tuple2<String,Double>>();
      for (StringDoublePair pair : features) {
        arr.add(new scala.Tuple2<String,Double>(pair.getString(), pair.getDouble()));
      }
      maxent.addValuedInstance(new java.lang.Integer(id), label,arr);
    }