private StringBuilder multilabelReport(String id, String[] split, boolean isIntegerMode, StringBuilder sb, Map<String, String> map) { String gold = null; String prediction = null; if (isIntegerMode) { String[] s = split[0].split(" "); gold = StringUtils.join(s, ","); s = split[1].split(" "); prediction = StringUtils.join(s, ","); } else { String[] s = split[0].split(" "); gold = label2String(s, map); s = split[1].split(" "); prediction = label2String(s, map); } sb.append(id + "=" + prediction + SEPARATOR_CHAR + gold + SEPARATOR_CHAR + THRESHOLD + "\n"); return sb; }
private StringBuilder multilabelReport(String id, String[] split, boolean isIntegerMode, StringBuilder sb, Map<String, String> map) { String gold = null; String prediction = null; if (isIntegerMode) { String[] s = split[0].split(" "); gold = StringUtils.join(s, ","); s = split[1].split(" "); prediction = StringUtils.join(s, ","); } else { String[] s = split[0].split(" "); gold = label2String(s, map); s = split[1].split(" "); prediction = label2String(s, map); } sb.append(id + "=" + prediction + SEPARATOR_CHAR + gold + SEPARATOR_CHAR + THRESHOLD + "\n"); return sb; }